1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-27 23:10:33 +02:00

[mobs] Reinforce nether lock in mobs:explosion

This commit is contained in:
LeMagnesium 2015-10-17 12:58:57 +02:00
parent 3e177a3fc9
commit 892910a2a4

View File

@ -1456,7 +1456,8 @@ function mobs:explosion(pos, radius, fire, smoke, sound)
local n = node_ok(p).name
if not minetest.is_protected(p, "") --/MFF (Crabman|06/23/2015) re-added node protected in areas
and minetest.get_item_group(n, "unbreakable") ~= 1 then
and minetest.get_item_group(n, "unbreakable") ~= 1
and minetest.get_item_group(n, "nether") == 0 then
-- if chest then drop items inside
if n == "default:chest"
or n == "3dchest:chest" then