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,