Replace deprecated settings_* API methods

This commit is contained in:
ClobberXD 2018-12-31 04:38:25 +05:30 committed by rubenwardy
parent f2c864ac04
commit 904c47dea2
15 changed files with 29 additions and 33 deletions

View file

@ -20,7 +20,7 @@ local function drop(pos, itemstack)
if obj then
obj:setvelocity({x=math.random(-1,1), y=5, z=math.random(-1,1)})
local remi = minetest.setting_get("remove_items")
local remi = minetest.settings:get("remove_items")
if minetest.is_yes(remi) then
obj:remove()
end