deprecation warning fix

This commit is contained in:
TenPlus1 2018-01-04 09:33:24 +00:00
parent 38fb55fa86
commit 4b4a52b8d5

View File

@ -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})