replace deprecated functions
parent
48860a5367
commit
f13e727b3a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue