Fixed Universal Block Reinforcer Lvl3 not working properly
@@ -232,6 +232,7 @@ public class BlockReinforcerContainer extends Container
public void onSlotChanged()
{
ItemStack stack = itemInventory.getStackInSlot(slotNumber % 2);
+ boolean isLvl3 = blockReinforcer.getItem() == SCContent.UNIVERSAL_BLOCK_REINFORCER_LVL_3.get();
if(!stack.isEmpty())
{
@@ -240,7 +241,7 @@ public class BlockReinforcerContainer extends Container
if(block != null)
{
output = new ItemStack(block);
- output.setCount(Math.min(stack.getCount(), blockReinforcer.getMaxDamage() - blockReinforcer.getDamage()));
+ output.setCount(isLvl3 ? stack.getCount() : Math.min(stack.getCount(), blockReinforcer.getMaxDamage() - blockReinforcer.getDamage()));
}
}
}
