Fix infinite potion spam with sponge

This commit is contained in:
Vincent Lee committed 2016-03-14 15:40:49 -05:00
1 parent b9b7a4e07d
commit f86f42b895
1 file changed
+6 -3
@@ -91,10 +91,13 @@ public abstract class ItemBrewBase extends ItemMod implements IBrewItem, IPickup
int swigs = getSwigsLeft(stack);
if(!player.capabilities.isCreativeMode) {
if(swigs == 1) {
ItemStack copy = baseItem.copy();
if(!player.inventory.addItemStackToInventory(copy))
if(!player.inventory.addItemStackToInventory(baseItem.copy()))
return baseItem.copy();
return null;
else {
ItemStack copy = stack.copy();
copy.stackSize = 0;
return copy;
}
}