diff options
author | Jeija <norrepli@gmail.com> | 2012-12-20 20:16:07 +0100 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2012-12-20 20:16:07 +0100 |
commit | f114cb8ddcbb2e007889a6bf45b8b3383c793756 (patch) | |
tree | 9b37bc06fbbffbf6b6e870487aeea8cfb3ab1b7a /mesecons_movestones/init.lua | |
parent | 5aa0815ffb9b1661311958da6a1e757e9c52a0c9 (diff) |
Fix movestone crash bug
Diffstat (limited to 'mesecons_movestones/init.lua')
-rw-r--r-- | mesecons_movestones/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesecons_movestones/init.lua b/mesecons_movestones/init.lua index b17874f..a7e5f2c 100644 --- a/mesecons_movestones/init.lua +++ b/mesecons_movestones/init.lua @@ -68,7 +68,7 @@ minetest.register_node("mesecons_movestones:movestone", { local checknode={} local collpos={x=pos.x, y=pos.y, z=pos.z} repeat -- Check if it collides with a stopper - collpos = addPosRule(collpos, direction) + collpos = mesecon:addPosRule(collpos, direction) checknode=minetest.env:get_node(collpos) if mesecon:is_mvps_stopper(checknode.name) then return @@ -138,7 +138,7 @@ minetest.register_node("mesecons_movestones:sticky_movestone", { local checknode={} local collpos={x=pos.x, y=pos.y, z=pos.z} repeat -- Check if it collides with a stopper - collpos = addPosRule(collpos, direction) + collpos = mesecon:addPosRule(collpos, direction) checknode=minetest.env:get_node(collpos) if mesecon:is_mvps_stopper(checknode.name) then return |