Formatted comment for better readability
This commit is contained in:
parent
8394a9940b
commit
e829e371d1
1 changed files with 2 additions and 5 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue