From f114cb8ddcbb2e007889a6bf45b8b3383c793756 Mon Sep 17 00:00:00 2001 From: Jeija Date: Thu, 20 Dec 2012 20:16:07 +0100 Subject: [PATCH] Fix movestone crash bug --- mesecons_movestones/init.lua | 4 ++-- 1 file 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