summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-01-04 09:33:24 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-01-04 09:33:24 +0000
commit4b4a52b8d5b4fe2ae73a7b64c2f337da9eb96715 (patch)
treeb6553c182b4df3f530230704bd41f7546e899826 /init.lua
parent38fb55fa86267ffd6365b3206f1779e9914bc8e5 (diff)
deprecation warning fix
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 8c615f7..e4919ec 100644
--- a/init.lua
+++ b/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})