summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2021-02-21 03:36:46 -0600
committercheapie <no-email-for-you@example.com>2021-02-21 03:36:46 -0600
commite0c0b5b48fb2abb48fd87ae74ae796f8311841c3 (patch)
tree18387b59674b61482347bfad6a206f32cdf87c61
parentad062495d8188539bb6ac7f558e9ade50076ecd5 (diff)
downloaddigistuff-e0c0b5b48fb2abb48fd87ae74ae796f8311841c3.tar
digistuff-e0c0b5b48fb2abb48fd87ae74ae796f8311841c3.tar.gz
digistuff-e0c0b5b48fb2abb48fd87ae74ae796f8311841c3.tar.bz2
digistuff-e0c0b5b48fb2abb48fd87ae74ae796f8311841c3.tar.xz
digistuff-e0c0b5b48fb2abb48fd87ae74ae796f8311841c3.zip
Fix movestones not working in protected areas
-rw-r--r--movestone.lua1
1 files changed, 1 insertions, 0 deletions
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)