patch protector for 5.2.0

This commit is contained in:
Sergei Mozhaisky 2020-04-10 11:30:42 +00:00
parent bc02595004
commit 610053d4c3

View File

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