Změnit "protector/init.lua"

This commit is contained in:
Milan2018 2020-03-16 12:49:49 +01:00
parent a06960581c
commit db8fa06bb9
1 changed files with 5 additions and 5 deletions

View File

@ -681,11 +681,11 @@ if minetest.get_modpath("mesecons_mvps") then
mesecon.register_mvps_stopper("protector:chest")
local old = mesecon.mvps_is_protected
function mesecon.mvps_is_protected(pos, ...)
if not protector.can_dig(protector_radius, pos, "mvps", false, 1, true) then
return true
end
return old(pos, ...)
end
if not protector.can_dig(protector_radius, pos, "mvps", false, 1, true) then
return true
end
return old(pos, ...)
end
end