diff options
author | AntumDeluge <antumdeluge@gmail.com> | 2017-05-12 23:40:30 -0700 |
---|---|---|
committer | sofar <sofar+github@foo-projects.org> | 2017-09-30 11:44:27 -0700 |
commit | 98d859fc2225f6b1ad62f4d475703dc280a75dd0 (patch) | |
tree | 4729639217801671bc4ff6e7da78e312253946b1 /tools.lua | |
parent | 144012f08278982820bd103951dd3e4140bfec9e (diff) |
Replace deprecated method 'setting_getbool' with 'settings:get_bool'HEADv1origin/masterorigin/HEADmaster
Diffstat (limited to 'tools.lua')
-rw-r--r-- | tools.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |