Replace deprecated method 'setting_getbool' with 'settings:get_bool'

This commit is contained in:
AntumDeluge 2017-05-13 00:57:51 -07:00
parent 2a0e695c94
commit 5aa3f8584f

View File

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