From 8f6140219190563d6015953f81843ce48fc6b9f6 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 10 Jan 2019 11:34:32 +0200 Subject: [PATCH] Fixed tomato plants consuming the item in creative mode --- .../com/minelittlepony/unicopia/item/ItemTomatoSeeds.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/item/ItemTomatoSeeds.java b/src/main/java/com/minelittlepony/unicopia/item/ItemTomatoSeeds.java index db161ab3..c92cfd81 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/ItemTomatoSeeds.java +++ b/src/main/java/com/minelittlepony/unicopia/item/ItemTomatoSeeds.java @@ -30,7 +30,9 @@ public class ItemTomatoSeeds extends Item { if (block instanceof BlockTomatoPlant) { if (((BlockTomatoPlant)block).plant(world, pos, state)) { - player.getHeldItem(hand).shrink(1); + if (!player.capabilities.isCreativeMode) { + player.getHeldItem(hand).shrink(1); + } return EnumActionResult.SUCCESS; }