mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-20 03:44:23 +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 (block instanceof BlockTomatoPlant) {
|
||||||
if (((BlockTomatoPlant)block).plant(world, pos, state)) {
|
if (((BlockTomatoPlant)block).plant(world, pos, state)) {
|
||||||
|
if (!player.capabilities.isCreativeMode) {
|
||||||
player.getHeldItem(hand).shrink(1);
|
player.getHeldItem(hand).shrink(1);
|
||||||
|
}
|
||||||
|
|
||||||
return EnumActionResult.SUCCESS;
|
return EnumActionResult.SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue