summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas--S <Thomas--S@users.noreply.github.com>2017-09-26 05:55:11 +0200
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-09-25 23:55:11 -0400
commitcf93eca0173fde8a6a7f6eabc1a6136a51cd2eba (patch)
tree1ddd1b0fbbeda62fdcc989956fb1efd757c7df81
parentb2bb4c528005475b68167c561ec7ecc791b85382 (diff)
downloadpipeworks-cf93eca0173fde8a6a7f6eabc1a6136a51cd2eba.tar
pipeworks-cf93eca0173fde8a6a7f6eabc1a6136a51cd2eba.tar.gz
pipeworks-cf93eca0173fde8a6a7f6eabc1a6136a51cd2eba.tar.bz2
pipeworks-cf93eca0173fde8a6a7f6eabc1a6136a51cd2eba.tar.xz
pipeworks-cf93eca0173fde8a6a7f6eabc1a6136a51cd2eba.zip
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.
-rw-r--r--wielder.lua4
1 files 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