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 d443c33..d8d6409 100644
--- a/farming/grapes.lua
+++ b/farming/grapes.lua
@@ -116,7 +116,7 @@ minetest.register_node("farming:trellis", {
minetest.set_node(pointed_thing.above, {name = "farming:trellis"})
- if not minetest.setting_getbool("creative_mode") then
+ if not farming.is_creative(placer:get_player_name()) then
itemstack:take_item()
end