only remove the protector display so that protector mod works with the item_drop mod

master
MisterE123 2020-12-25 06:29:12 +00:00
parent 384a38208d
commit 5216d5eb56
1 changed files with 6 additions and 2 deletions

View File

@ -530,7 +530,9 @@ minetest.register_node("protector:protect", {
after_destruct = function(pos, oldnode)
local objects = minetest.get_objects_inside_radius(pos, 0.5)
for _, v in ipairs(objects) do
v:remove()
if v:get_luaentity().name == "protector:display" then
v:remove()
end
end
end,
})
@ -636,7 +638,9 @@ minetest.register_node("protector:protect2", {
after_destruct = function(pos, oldnode)
local objects = minetest.get_objects_inside_radius(pos, 0.5)
for _, v in ipairs(objects) do
v:remove()
if v:get_luaentity().name == "protector:display" then
v:remove()
end
end
end,
})