mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-25 02:10:23 +01:00
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:
parent
b2bb4c5280
commit
cf93eca017
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user