diff --git a/init.lua b/init.lua index 1f8a425..7e484ca 100644 --- a/init.lua +++ b/init.lua @@ -348,7 +348,7 @@ core.register_craftitem("sneeker:spawnegg", { local pos = pointed_thing.above pos.y = pos.y+1 core.add_entity(pos, "sneeker:sneeker") - if not core.setting_getbool("creative_mode") then + if not core.settings:get_bool("creative_mode", false) then itemstack:take_item() end return itemstack diff --git a/tnt_function.lua b/tnt_function.lua index 465542b..01bf6f9 100644 --- a/tnt_function.lua +++ b/tnt_function.lua @@ -1,7 +1,7 @@ -- From TNT local cid_data = {} -local radius = tonumber(core.setting_get("tnt_radius") or 3) +local radius = tonumber(core.settings:get("tnt_radius") or 3) local large_radius = 5 local loss_prob = { ["default:cobble"] = 3,