summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-12-20 20:16:07 +0100
committerJeija <norrepli@gmail.com>2012-12-20 20:16:07 +0100
commitf114cb8ddcbb2e007889a6bf45b8b3383c793756 (patch)
tree9b37bc06fbbffbf6b6e870487aeea8cfb3ab1b7a
parent5aa0815ffb9b1661311958da6a1e757e9c52a0c9 (diff)
downloadmesecons-f114cb8ddcbb2e007889a6bf45b8b3383c793756.tar
mesecons-f114cb8ddcbb2e007889a6bf45b8b3383c793756.tar.gz
mesecons-f114cb8ddcbb2e007889a6bf45b8b3383c793756.tar.bz2
mesecons-f114cb8ddcbb2e007889a6bf45b8b3383c793756.tar.xz
mesecons-f114cb8ddcbb2e007889a6bf45b8b3383c793756.zip
Fix movestone crash bug
-rw-r--r--mesecons_movestones/init.lua4
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