summaryrefslogtreecommitdiff
path: root/grapes.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 /grapes.lua
parentdf1aa7fad3e7af030ee6e260b6ec719af727ff0e (diff)
optimized growing routine, fixed place_param2
Diffstat (limited to 'grapes.lua')
-rw-r--r--grapes.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/grapes.lua b/grapes.lua
index 9070d0e..d443c33 100644
--- a/grapes.lua
+++ b/grapes.lua
@@ -36,7 +36,7 @@ function place_grapes(itemstack, placer, pointed_thing, plantname)
minetest.sound_play("default_place_node", {pos = pt.under, gain = 1.0})
- if not minetest.setting_getbool("creative_mode") then
+ if not farming.is_creative(placer:get_player_name()) then
itemstack:take_item()