Update deprecated settings syntax
This commit is contained in:
parent
94d4ad99f4
commit
a88f644001
|
@ -295,7 +295,7 @@ end
|
|||
|
||||
--modify builtin:item
|
||||
|
||||
local time_to_live = tonumber(core.setting_get("item_entity_ttl"))
|
||||
local time_to_live = tonumber(minetest.settings:get("item_entity_ttl"))
|
||||
if not time_to_live then
|
||||
time_to_live = 300
|
||||
end
|
||||
|
|
|
@ -287,7 +287,7 @@ mobs_mc.spawn = {
|
|||
-- This table contains important spawn height references for the mob spawn height.
|
||||
-- Please base your mob spawn height on these numbers to keep things clean.
|
||||
mobs_mc.spawn_height = {
|
||||
water = tonumber(minetest.setting_get("water_level")) or 0, -- Water level in the Overworld
|
||||
water = tonumber(minetest.settings:get("water_level")) or 0, -- Water level in the Overworld
|
||||
|
||||
-- Overworld boundaries (inclusive)
|
||||
overworld_min = -2999,
|
||||
|
|
|
@ -216,7 +216,7 @@ mobs_mc.override.spawn = {
|
|||
|
||||
-- This table contains important spawn height references for the mob spawn height.
|
||||
mobs_mc.override.spawn_height = {
|
||||
water = tonumber(minetest.setting_get("water_level")) or 0, -- Water level in the Overworld
|
||||
water = tonumber(minetest.settings:get("water_level")) or 0, -- Water level in the Overworld
|
||||
|
||||
-- Overworld boundaries (inclusive)
|
||||
overworld_min = mcl_vars.mg_overworld_min,
|
||||
|
|
Loading…
Reference in New Issue