forked from mtcontrib/farming
deprecation warning fix
This commit is contained in:
parent
38fb55fa86
commit
4b4a52b8d5
2
init.lua
2
init.lua
|
@ -15,7 +15,7 @@ farming.select = {
|
|||
}
|
||||
|
||||
|
||||
local creative_mode_cache = minetest.setting_getbool("creative_mode")
|
||||
local creative_mode_cache = minetest.settings:get_bool("creative_mode")
|
||||
|
||||
function farming.is_creative(name)
|
||||
return creative_mode_cache or minetest.check_player_privs(name, {creative = true})
|
||||
|
|
Loading…
Reference in New Issue
Block a user