Use 'setting_get*' methods instead of 'settings:get*':

Compatibility with 0.4.15 server.
This commit is contained in:
AntumDeluge 2017-05-27 18:04:30 -07:00
parent b8a2e98ea0
commit f6eca4002a
2 changed files with 2 additions and 2 deletions

@ -341,7 +341,7 @@ if minetest.get_modpath('spawneggs') and minetest.get_modpath('tnt') then
local pos = pointed_thing.above local pos = pointed_thing.above
pos.y = pos.y+1 pos.y = pos.y+1
minetest.add_entity(pos,'sneaker:sneaker') 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() itemstack:take_item()
end end
return itemstack return itemstack

@ -3,7 +3,7 @@
-- From TNT -- From TNT
local cid_data = {} local cid_data = {}
local radius = tonumber(minetest.settings:get('tnt_radius') or 3) local radius = tonumber(minetest.setting_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,