mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed tomato plants consuming the item in creative mode
This commit is contained in:
parent
854956f37f
commit
8f61402191
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue