mirror of
https://cheapiesystems.com/git/digistuff
synced 2024-11-28 10:03:49 +01:00
Fix movestones not working in protected areas
This commit is contained in:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user