replace deprecated functions

master
Juraj Vajda 2017-12-10 16:53:46 -05:00
parent 48860a5367
commit f13e727b3a
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ function register_door(name, def)
minetest.get_meta(pt2):set_int("right", 1)
end
if not minetest.setting_getbool("creative_mode") then
if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item()
end
return itemstack

View File

@ -1,5 +1,5 @@
local radius = (tonumber(minetest.setting_get("protector_radius")) or 5)
local radius = (tonumber(minetest.settings:get("protector_radius")) or 5)
local hud = {}
local hud_timer = 0