summaryrefslogtreecommitdiff
path: root/cocoa.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-08-29 13:59:04 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-08-29 13:59:04 +0100
commitee35a77ed0221de9ad4261d7e8952b1bcb7af83c (patch)
treee001d4eeafee1db8ca4d627b8926c90290660a48 /cocoa.lua
parentdf1aa7fad3e7af030ee6e260b6ec719af727ff0e (diff)
optimized growing routine, fixed place_param2
Diffstat (limited to 'cocoa.lua')
-rw-r--r--cocoa.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa.lua b/cocoa.lua
index fad1733..3ee3532 100644
--- a/cocoa.lua
+++ b/cocoa.lua
@@ -36,7 +36,7 @@ function place_cocoa(itemstack, placer, pointed_thing, plantname)
minetest.sound_play("default_place_node", {pos = pt.above, gain = 1.0})
- if not minetest.setting_getbool("creative_mode") then
+ if not farming.is_creative(placer:get_player_name()) then
itemstack:take_item()