Fix movestones not working in protected areas

This commit is contained in:
cheapie 2021-02-21 03:36:46 -06:00
parent ad062495d8
commit e0c0b5b48f

@ -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)