summaryrefslogtreecommitdiff
path: root/mesecons_movestones
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-12-27 22:33:09 +0100
committerJeija <norrepli@gmail.com>2012-12-27 22:33:09 +0100
commitab1966f763ed6cda66094d3f7884b33dde3834dc (patch)
tree249c0dbf3cbb16feb98572dee94ec5751296ba4c /mesecons_movestones
parenta9a2108d13af1fe06f5f91e841de4d057d363f56 (diff)
downloadmesecons-ab1966f763ed6cda66094d3f7884b33dde3834dc.tar
mesecons-ab1966f763ed6cda66094d3f7884b33dde3834dc.tar.gz
mesecons-ab1966f763ed6cda66094d3f7884b33dde3834dc.tar.bz2
mesecons-ab1966f763ed6cda66094d3f7884b33dde3834dc.tar.xz
mesecons-ab1966f763ed6cda66094d3f7884b33dde3834dc.zip
Fix server crash when using movestones
Diffstat (limited to 'mesecons_movestones')
-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