Replace old nodeupdate() with new minetest.check_for_falling() (#200)

Otherwise pipeworks crashes on 0.5.0-dev.

This is not tested, but should work.
This commit is contained in:
Thomas--S 2017-09-26 05:55:11 +02:00 committed by Vanessa Ezekowitz
parent b2bb4c5280
commit cf93eca017

View File

@ -24,7 +24,7 @@ local function wielder_on(data, wielder_pos, wielder_node)
if wielder_node.name ~= data.name_base.."_off" then return end
wielder_node.name = data.name_base.."_on"
minetest.swap_node(wielder_pos, wielder_node)
nodeupdate(wielder_pos)
minetest.check_for_falling(wielder_pos)
local wielder_meta = minetest.get_meta(wielder_pos)
local inv = wielder_meta:get_inventory()
local wield_inv_name = data.wield_inv_name
@ -154,7 +154,7 @@ local function wielder_off(data, pos, node)
if node.name == data.name_base.."_on" then
node.name = data.name_base.."_off"
minetest.swap_node(pos, node)
nodeupdate(pos)
minetest.check_for_falling(pos)
end
end