From e0c0b5b48fb2abb48fd87ae74ae796f8311841c3 Mon Sep 17 00:00:00 2001 From: cheapie Date: Sun, 21 Feb 2021 03:36:46 -0600 Subject: Fix movestones not working in protected areas --- movestone.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/movestone.lua b/movestone.lua index e597a42..c7c5408 100644 --- a/movestone.lua +++ b/movestone.lua @@ -113,6 +113,7 @@ minetest.register_node("digistuff:movestone", { local state = meta:get_string("state") local newpos = pos if state ~= "" then state = minetest.deserialize(state) else return end + if not state.player then state.player = meta:get_string("owner") end if state.moveaxis == "x" then local dir = vector.new(state.targetx > pos.x and 1 or -1,0,0) move(pos,dir,state) -- cgit v1.2.3