From ee35a77ed0221de9ad4261d7e8952b1bcb7af83c Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Tue, 29 Aug 2017 13:59:04 +0100 Subject: optimized growing routine, fixed place_param2 --- grapes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grapes.lua') 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() -- cgit v1.2.3