Formatted comment for better readability

This commit is contained in:
Ayutac 2022-03-31 19:54:17 +02:00 committed by GitHub
parent 8394a9940b
commit e829e371d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -286,11 +286,8 @@ public class RecipeCrafter implements IUpgradeHandler {
if (ItemUtils.isItemEqual(inventory.getStack(slot), stack, true)) {// If the slot has stuff in if (ItemUtils.isItemEqual(inventory.getStack(slot), stack, true)) {// If the slot has stuff in
if (stack.getCount() + inventory.getStack(slot).getCount() <= stack.getMaxCount()) {// Check to see if it fits if (stack.getCount() + inventory.getStack(slot).getCount() <= stack.getMaxCount()) {// Check to see if it fits
ItemStack newStack = stack.copy(); ItemStack newStack = stack.copy();
newStack.setCount(inventory.getStack(slot).getCount() + stack.getCount());// Sets // Sets the new stack size
// the newStack.setCount(inventory.getStack(slot).getCount() + stack.getCount());
// new
// stack
// size
inventory.setStack(slot, newStack); inventory.setStack(slot, newStack);
} }
} }