summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcommon.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/common.lua b/common.lua
index 5ccf7d5..b50b733 100755
--- a/common.lua
+++ b/common.lua
@@ -136,6 +136,8 @@ end
---------
function minetest.load_position(pos)
+ if pos.x < -30912 or pos.y < -30912 or pos.z < -30912 or
+ pos.x > 30927 or pos.y > 30927 or pos.z > 30927 then return end
if minetest.get_node_or_nil(pos) then
return
end