Update deprecated settings syntax

This commit is contained in:
Wuzzy 2018-06-20 19:02:52 +02:00
parent 94d4ad99f4
commit a88f644001
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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,

View File

@ -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,