forked from Mirrorlandia_minetest/mod-sneeker
Replace deprecated setting_get methods
This commit is contained in:
parent
be4c3617af
commit
b9609a5b16
2
init.lua
2
init.lua
@ -348,7 +348,7 @@ core.register_craftitem("sneeker:spawnegg", {
|
|||||||
local pos = pointed_thing.above
|
local pos = pointed_thing.above
|
||||||
pos.y = pos.y+1
|
pos.y = pos.y+1
|
||||||
core.add_entity(pos, "sneeker:sneeker")
|
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()
|
itemstack:take_item()
|
||||||
end
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
-- From TNT
|
-- From TNT
|
||||||
|
|
||||||
local cid_data = {}
|
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 large_radius = 5
|
||||||
local loss_prob = {
|
local loss_prob = {
|
||||||
["default:cobble"] = 3,
|
["default:cobble"] = 3,
|
||||||
|
Loading…
Reference in New Issue
Block a user