forked from VoxeLibre/VoxeLibre
Fix the exactness of the worldborder system
This commit is contained in:
parent
069ccbe010
commit
712179623a
|
@ -7,8 +7,8 @@ local xmin = mcljepc_mapgen.size * -1
|
|||
local old_is_protected = minetest.is_protected
|
||||
function minetest.is_protected(pos, name)
|
||||
return old_is_protected(pos, name) or not (
|
||||
ymin < pos.y and pos.y < ymax
|
||||
and zmin < pos.z and pos.z < zmax
|
||||
and xmin < pos.x and pos.x < xmax
|
||||
ymin <= pos.y and pos.y <= ymax
|
||||
and zmin <= pos.z and pos.z <= zmax
|
||||
and xmin <= pos.x and pos.x <= xmax
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue