Coding style

This commit is contained in:
Raoul Van den Berge
2016-11-26 13:37:28 +01:00
parent 673df2acb1
commit 488010b32a
2 changed files with 4 additions and 3 deletions

View File

@@ -158,7 +158,9 @@ public abstract class CraftingStep implements ICraftingStep {
return tag;
}
protected enum AvailableType { ITEM, FLUID }
enum AvailableType {
ITEM, FLUID
}
protected AvailableType isItemAvailable(IItemStackList items, IFluidStackList fluids, ItemStack stack, ItemStack actualStack, int compare) {
if (actualStack == null || actualStack.stackSize == 0 || !items.trackedRemove(actualStack, stack.stackSize, true)) {
@@ -200,7 +202,7 @@ public abstract class CraftingStep implements ICraftingStep {
}
}
if (abort){
if (abort) {
// Abort task re-insert taken stacks and reset state
toInsertItems.addAll(actualInputs.getStacks());
startedProcessing = false;

View File

@@ -158,7 +158,6 @@ public class ItemStackList implements IItemStackList {
return stacks.toString();
}
public static ItemStack[] toCraftingGrid(IItemStackList list, List<ItemStack> grid, int compare) {
ItemStack[] took = new ItemStack[9];
for (int i = 0; i < grid.size(); i++) {