Replace deprecated setting_get methods

This commit is contained in:
Jordan Irwin 2021-05-08 11:44:42 -07:00
parent be4c3617af
commit b9609a5b16
2 changed files with 2 additions and 2 deletions

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

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