Skip to content

Commit

Permalink
Do not consume entire plant stack; drop plants on breaking container
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed Jul 30, 2014
1 parent 74c335b commit 36128b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ protected boolean applyPlantToGarden (World world, int x, int y, int z, EntityPl

TileEntityGarden garden = getTileEntity(world, x, y, z);

garden.setInventorySlotContents(slot, plant.getPlantSourceItem());
garden.setInventorySlotContents(slot, plant.getPlantSourceItem().copy());

if (player != null && !player.capabilities.isCreativeMode) {
ItemStack currentItem = player.inventory.getCurrentItem();
Expand Down

0 comments on commit 36128b1

Please sign in to comment.