summaryrefslogtreecommitdiff
path: root/corn.lua
diff options
context:
space:
mode:
Diffstat (limited to 'corn.lua')
-rw-r--r--corn.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/corn.lua b/corn.lua
index c49fa2c..15dc886 100644
--- a/corn.lua
+++ b/corn.lua
@@ -36,7 +36,7 @@ minetest.register_node("crops:corn", {
return
end
crops.plant(pointed_thing.above, {name="crops:corn_base_seed", param2 = 3})
- if not minetest.setting_getbool("creative_mode") then
+ if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item()
end
return itemstack