From cf93eca0173fde8a6a7f6eabc1a6136a51cd2eba Mon Sep 17 00:00:00 2001 From: Thomas--S Date: Tue, 26 Sep 2017 05:55:11 +0200 Subject: [PATCH] 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. --- wielder.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wielder.lua b/wielder.lua index 4e2882b..36c1eb9 100644 --- a/wielder.lua +++ b/wielder.lua @@ -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