worldedge: Use "world_edge" from .conf to determine size of game map.

master
AntumDeluge 2016-07-30 20:25:03 -07:00
parent 9adb07e39b
commit b47b442fe1
2 changed files with 16 additions and 2 deletions

View File

@ -1545,7 +1545,19 @@ disallow_empty_password = true
# type: string
# modstore_details_url = https://forum.minetest.net/mmdb/mod/*/
### MOD CONFIGURATIONS ###
## player/unified_inventory
# Show the "lite" version of unified_inventory
# type: bool
unified_inventory_lite = false
## world/worldedge
#
# type: int
world_edge = 30000

View File

@ -2,11 +2,13 @@
-- TODO: Check for terrain height
-- Defines the edge of a world
local edge = 30000
local edge = tonumber(minetest.setting_get("world_edge")) or 30000
-- Radius which should be checked for a good teleportation place
local radius = 2
--------------
core.log("action", "World edge: " .. edge)
local count = 0
local waiting_list = {}
--[[ Explanation of waiting_list table