Don't drop sugarcane/cactus in creative

This commit is contained in:
Wuzzy 2017-02-18 21:51:50 +01:00
parent 7aedb3c4ad
commit 3620f9d8ad
1 changed files with 3 additions and 1 deletions

View File

@ -156,7 +156,9 @@ minetest.register_on_dignode(function(pos, node)
local np={x=pos.x, y=pos.y+1, z=pos.z}
while minetest.get_node(np).name==timber_nodenames[i] do
minetest.remove_node(np)
minetest.add_item(np, timber_nodenames[i])
if not minetest.setting_getbool("creative_mode") then
minetest.add_item(np, timber_nodenames[i])
end
np={x=np.x, y=np.y+1, z=np.z}
end
end