worldedge: Use "world_edge" from .conf to determine size of game map.
parent
9adb07e39b
commit
b47b442fe1
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
@ -140,4 +142,4 @@ minetest.register_entity("worldedge:lock", {
|
|||
on_activate = function(staticdata, dtime_s)
|
||||
--self.object:set_armor_groups({immortal = 1})
|
||||
end
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue