From b1c3a5a59071644c9619049d905b5c396c7c32ed Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Sat, 13 May 2017 03:47:36 -0700 Subject: [PATCH] Replace deprecated methods: - 'setting_get' with 'settings:get' - 'setting_getbool' with 'settings:get_bool' --- init.lua | 2 +- tnt_function.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index caecd8b..7beca37 100644 --- a/init.lua +++ b/init.lua @@ -352,7 +352,7 @@ if minetest.global_exists("spawneggs") then local pos = pointed_thing.above pos.y = pos.y+1 minetest.add_entity(pos,"creeper:creeper") - if not minetest.setting_getbool("creative_mode") then + if not minetest.settings:get_bool("creative_mode", false) then itemstack:take_item() end return itemstack diff --git a/tnt_function.lua b/tnt_function.lua index c52009e..5eacd1c 100644 --- a/tnt_function.lua +++ b/tnt_function.lua @@ -1,6 +1,6 @@ -- From TNT local cid_data = {} -local radius = tonumber(minetest.setting_get("tnt_radius") or 3) +local radius = tonumber(minetest.settings:get("tnt_radius") or 3) local large_radius = 5 local loss_prob = { ["default:cobble"] = 3,