Replace deprecated methods:

- 'setting_get' with 'settings:get'
- 'setting_getbool' with 'settings:get_bool'
This commit is contained in:
AntumDeluge 2017-05-13 03:47:36 -07:00 committed by Jordan Irwin
parent de7cd62f17
commit b1c3a5a590
2 changed files with 2 additions and 2 deletions

@ -352,7 +352,7 @@ if minetest.global_exists("spawneggs") then
local pos = pointed_thing.above local pos = pointed_thing.above
pos.y = pos.y+1 pos.y = pos.y+1
minetest.add_entity(pos,"creeper:creeper") 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() itemstack:take_item()
end end
return itemstack return itemstack

@ -1,6 +1,6 @@
-- From TNT -- From TNT
local cid_data = {} 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 large_radius = 5
local loss_prob = { local loss_prob = {
["default:cobble"] = 3, ["default:cobble"] = 3,