Replace deprecated method 'setting_getbool' with 'settings:get_bool'
This commit is contained in:
parent
2a0e695c94
commit
5aa3f8584f
@ -45,7 +45,7 @@ antum.spawneggs.addEgg = function(name, spawn, ingredients)
|
||||
local pos = target.above
|
||||
pos.y = pos.y + 1
|
||||
minetest.add_entity(pos, spawn)
|
||||
if not minetest.setting_getbool('creative_mode') then
|
||||
if not minetest.settings:get_bool('creative_mode') then
|
||||
itemstack:take_item()
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user