Screwdriver: drop nodes if no longer attached.
This should be fairly cheap and pops off items if needed.
This commit is contained in:
parent
efb81d188e
commit
d5e19d70c2
|
@ -130,6 +130,7 @@ screwdriver.handler = function(itemstack, user, pointed_thing, mode, uses)
|
||||||
if should_rotate then
|
if should_rotate then
|
||||||
node.param2 = new_param2
|
node.param2 = new_param2
|
||||||
minetest.swap_node(pos, node)
|
minetest.swap_node(pos, node)
|
||||||
|
minetest.check_for_falling(pos)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not minetest.setting_getbool("creative_mode") then
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
|
|
Loading…
Reference in New Issue