summaryrefslogtreecommitdiff
path: root/farming/grapes.lua
diff options
context:
space:
mode:
Diffstat (limited to 'farming/grapes.lua')
-rw-r--r--farming/grapes.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/farming/grapes.lua b/farming/grapes.lua
index 9070d0e..d443c33 100644
--- a/farming/grapes.lua
+++ b/farming/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()