Fix the exactness of the worldborder system

This commit is contained in:
Nathan Fritzler 2022-06-20 22:44:56 -06:00
parent 069ccbe010
commit 712179623a
Signed by: Lazerbeak12345
GPG Key ID: 736DE8D7C58AD7FE
1 changed files with 3 additions and 3 deletions

View File

@ -7,8 +7,8 @@ local xmin = mcljepc_mapgen.size * -1
local old_is_protected = minetest.is_protected local old_is_protected = minetest.is_protected
function minetest.is_protected(pos, name) function minetest.is_protected(pos, name)
return old_is_protected(pos, name) or not ( return old_is_protected(pos, name) or not (
ymin < pos.y and pos.y < ymax ymin <= pos.y and pos.y <= ymax
and zmin < pos.z and pos.z < zmax and zmin <= pos.z and pos.z <= zmax
and xmin < pos.x and pos.x < xmax and xmin <= pos.x and pos.x <= xmax
) )
end end