small fixes to tool tips. allow +1 button to go over maxstacksize

This commit is contained in:
PrototypeTrousers
2022-10-17 22:33:42 -03:00
parent 1f1d6d041a
commit c9f1387098
3 changed files with 21 additions and 15 deletions
@@ -328,13 +328,13 @@ public class ContainerPatternTerm extends ContainerMEMonitorable implements IAEA
for (int x = 0; x < this.craftingSlots.length; x++) {
input[x] = this.craftingSlots[x].getStack();
if (!input[x].isEmpty() && input[x].getCount() + increase > input[x].getMaxStackSize()) {
if (!input[x].isEmpty() && input[x].getCount() + increase < 0) {
canIncreaseInputs = false;
}
}
for (final OptionalSlotFake outputSlot : this.outputSlots) {
final ItemStack out = outputSlot.getStack();
if (!out.isEmpty() && out.getCount() + increase > out.getMaxStackSize()) {
if (!out.isEmpty() && out.getCount() + increase < 0) {
canIncreaseOutputs = false;
}
}