Use 'setting_get*' methods instead of 'settings:get*':
Compatibility with 0.4.15 server.
This commit is contained in:
2
init.lua
2
init.lua
@@ -341,7 +341,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,'sneaker:sneaker')
|
||||
if not minetest.settings:get_bool('creative_mode') then
|
||||
if not minetest.setting_getbool('creative_mode') then
|
||||
itemstack:take_item()
|
||||
end
|
||||
return itemstack
|
||||
|
||||
Reference in New Issue
Block a user