forked from LizzyFleckenstein03/Memeclone
Don't drop sugarcane/cactus in creative
This commit is contained in:
parent
7aedb3c4ad
commit
3620f9d8ad
|
@ -156,7 +156,9 @@ minetest.register_on_dignode(function(pos, node)
|
||||||
local np={x=pos.x, y=pos.y+1, z=pos.z}
|
local np={x=pos.x, y=pos.y+1, z=pos.z}
|
||||||
while minetest.get_node(np).name==timber_nodenames[i] do
|
while minetest.get_node(np).name==timber_nodenames[i] do
|
||||||
minetest.remove_node(np)
|
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}
|
np={x=np.x, y=np.y+1, z=np.z}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue