forked from mtcontrib/tsm_mines
Merge branch 'orcz'
This commit is contained in:
commit
e696e08de3
18
init.lua
18
init.lua
@ -1,16 +1,10 @@
|
|||||||
local MINE_DEEP_MIN = tonumber(minetest.setting_get("mines_deep_min"))
|
local MINE_DEEP_MIN = tonumber(minetest.settings:get("mines_deep_min")) or -64
|
||||||
local MINE_DEEP_MAX = tonumber(minetest.setting_get("mines_deep_max"))
|
local MINE_DEEP_MAX = tonumber(minetest.settings:get("mines_deep_max")) or -380
|
||||||
local MINE_FACTOR = tonumber(minetest.setting_get("mines_spawnfactor"))
|
local MINE_FACTOR = tonumber(minetest.settings:get("mines_spawnfactor")) or 1.5
|
||||||
|
|
||||||
if not MINE_DEEP_MIN then
|
minetest.log("info", "Mod \"tsm_mines\" set MINE_DEEP_MIN to "..MINE_DEEP_MIN)
|
||||||
MINE_DEEP_MIN = -64
|
minetest.log("info", "Mod \"tsm_mines\" set MINE_DEEP_MAX to "..MINE_DEEP_MAX)
|
||||||
end
|
minetest.log("info", "Mod \"tsm_mines\" set MINE_FACTOR to "..MINE_FACTOR)
|
||||||
if not MINE_DEEP_MAX then
|
|
||||||
MINE_DEEP_MAX = -13800
|
|
||||||
end
|
|
||||||
if not MINE_FACTOR then
|
|
||||||
MINE_FACTOR = 1.5
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_node("tsm_mines:dummy", {
|
minetest.register_node("tsm_mines:dummy", {
|
||||||
description = "tsm_mines dummy node",
|
description = "tsm_mines dummy node",
|
||||||
|
Loading…
Reference in New Issue
Block a user