Remove shulker box code in rp_creative

This commit is contained in:
Wuzzy 2022-05-04 12:52:46 +02:00
parent 5525c5e52a
commit d07b726fc2

View File

@ -201,8 +201,7 @@ end
if minetest.is_creative_enabled("") then
minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack)
-- Place infinite nodes, except for shulker boxes
local group = minetest.get_item_group(itemstack:get_name(), "shulker_box")
return group == 0 or group == nil
-- Place infinite nodes
return true
end)
end