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)