patch protector for 5.2.0
This commit is contained in:
parent
bc02595004
commit
610053d4c3
@ -299,7 +299,7 @@ function minetest.is_protected(pos, digger)
|
||||
-- flip player when protection violated
|
||||
if protector_flip then
|
||||
-- ugly, ugly hack. we teleport player only if is_protected is called from core.node_dig
|
||||
if string.match(debug.traceback(), '</usr/local/share/minetest/builtin/game/item.lua:543>') then
|
||||
if string.match(debug.traceback(), '</usr/local/share/minetest/builtin/game/item.lua:550>') then
|
||||
player:set_pos({
|
||||
x = statspawn.x,
|
||||
y = statspawn.y,
|
||||
|
Loading…
x
Reference in New Issue
Block a user