Replace deprecated methods:
- 'setting_get' with 'settings:get' - 'setting_getbool' with 'settings:get_bool'
This commit is contained in:
parent
299b12b5a4
commit
14f9c3c6b3
2
init.lua
2
init.lua
@ -335,7 +335,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,"creeper:creeper")
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
if not minetest.settings:get_bool("creative_mode") then
|
||||
itemstack:take_item()
|
||||
end
|
||||
return itemstack
|
||||
|
@ -1,6 +1,6 @@
|
||||
-- From TNT
|
||||
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 loss_prob = {
|
||||
["default:cobble"] = 3,
|
||||
|
Loading…
Reference in New Issue
Block a user