summaryrefslogtreecommitdiff
path: root/tomato.lua
diff options
context:
space:
mode:
authorAntumDeluge <antumdeluge@gmail.com>2017-05-12 23:40:30 -0700
committersofar <sofar+github@foo-projects.org>2017-09-30 11:44:27 -0700
commit98d859fc2225f6b1ad62f4d475703dc280a75dd0 (patch)
tree4729639217801671bc4ff6e7da78e312253946b1 /tomato.lua
parent144012f08278982820bd103951dd3e4140bfec9e (diff)
Replace deprecated method 'setting_getbool' with 'settings:get_bool'HEADv1origin/masterorigin/HEADmaster
Diffstat (limited to 'tomato.lua')
-rw-r--r--tomato.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tomato.lua b/tomato.lua
index 48b75b9..f70d914 100644
--- a/tomato.lua
+++ b/tomato.lua
@@ -36,7 +36,7 @@ minetest.register_node("crops:tomato_seed", {
return
end
crops.plant(pointed_thing.above, {name="crops:tomato_plant_1", param2 = 1})
- if not minetest.setting_getbool("creative_mode") then
+ if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item()
end
return itemstack