mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
Fix infinite potion spam with sponge
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user