From 98d859fc2225f6b1ad62f4d475703dc280a75dd0 Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Fri, 12 May 2017 23:40:30 -0700 Subject: Replace deprecated method 'setting_getbool' with 'settings:get_bool' --- tools.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools.lua') diff --git a/tools.lua b/tools.lua index cb80788..c6f9ee9 100644 --- a/tools.lua +++ b/tools.lua @@ -69,7 +69,7 @@ minetest.register_tool("crops:watering_can", { water = math.min(water + crops.settings.watercan, crops.settings.watercan_max) meta:set_int("crops_water", water) - if not minetest.setting_getbool("creative_mode") then + if not minetest.settings:get_bool("creative_mode") then itemstack:set_wear(math.min(65534, wear + (65535 / crops.settings.watercan_uses))) end return itemstack -- cgit v1.2.3