Fixed a crash when shift-clicking damanged non-flower items into the Flower Pouch.

This commit is contained in:
Lizbeth Rika committed 2015-04-17 11:20:46 +01:00
1 parent 0c6f84eebb
commit 714ac8d461
1 file changed
+5 -3
@@ -71,9 +71,11 @@ public class ContainerFlowerBag extends Container {
return null;
} else {
int i = itemstack.getItemDamage();
Slot slot1 = (Slot)inventorySlots.get(i);
if(slot1.isItemValid(itemstack) && !mergeItemStack(itemstack1, i, i + 1, true))
return null;
if(i < 16) {
Slot slot1 = (Slot)inventorySlots.get(i);
if(slot1.isItemValid(itemstack) && !mergeItemStack(itemstack1, i, i + 1, true))
return null;
}
}
if(itemstack1.stackSize == 0)