From f6eca4002aa1fb591fc6055b40a6bb249a610370 Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Sat, 27 May 2017 18:04:30 -0700 Subject: [PATCH] Use 'setting_get*' methods instead of 'settings:get*': Compatibility with 0.4.15 server. --- init.lua | 2 +- tnt_function.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 22b4471..5eef594 100644 --- a/init.lua +++ b/init.lua @@ -341,7 +341,7 @@ if minetest.get_modpath('spawneggs') and minetest.get_modpath('tnt') then local pos = pointed_thing.above pos.y = pos.y+1 minetest.add_entity(pos,'sneaker:sneaker') - if not minetest.settings:get_bool('creative_mode') then + if not minetest.setting_getbool('creative_mode') then itemstack:take_item() end return itemstack diff --git a/tnt_function.lua b/tnt_function.lua index 866cfa8..659ee59 100644 --- a/tnt_function.lua +++ b/tnt_function.lua @@ -3,7 +3,7 @@ -- From TNT local cid_data = {} -local radius = tonumber(minetest.settings:get('tnt_radius') or 3) +local radius = tonumber(minetest.setting_get('tnt_radius') or 3) local large_radius = 5 local loss_prob = { ['default:cobble'] = 3,