From 1f03ae4d8df207b1d6a8c6ecc9f97ad1aef15a62 Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Fri, 12 May 2017 13:54:58 -0700 Subject: [PATCH] Use config setting 'world_edge' to determine size of world: Defaults to '30000' if setting not found. --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index bbf914a..f3fb7f4 100644 --- a/init.lua +++ b/init.lua @@ -2,7 +2,7 @@ -- TODO: Check for terrain height -- Defines the edge of a world -local edge = 30000 +local edge = tonumber(minetest.settings:get("world_edge")) or 30000 -- Radius which should be checked for a good teleportation place local radius = 2 -------------- @@ -140,4 +140,4 @@ minetest.register_entity("worldedge:lock", { on_activate = function(staticdata, dtime_s) --self.object:set_armor_groups({immortal = 1}) end -}) \ No newline at end of file +})