mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
Don't drop sugarcane/cactus in creative
This commit is contained in:
parent
7aedb3c4ad
commit
3620f9d8ad
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue