Simplified some control flow statements
This commit is contained in:
@@ -140,7 +140,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
|
||||
|
||||
for (int x = 0; x < accountedFor.length; x++)
|
||||
{
|
||||
if ( accountedFor[x] == false )
|
||||
if ( !accountedFor[x] )
|
||||
addToCraftingList( patterns.getStackInSlot( x ) );
|
||||
}
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ public class MultiCraftingTracker
|
||||
hasStuff = true;
|
||||
}
|
||||
|
||||
if ( hasStuff == false )
|
||||
if ( !hasStuff )
|
||||
links = null;
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@ public class MultiCraftingTracker
|
||||
}
|
||||
}
|
||||
|
||||
if ( hasStuff == false )
|
||||
if ( !hasStuff )
|
||||
jobs = null;
|
||||
}
|
||||
|
||||
|
||||
@@ -212,7 +212,7 @@ public class PatternHelper implements ICraftingPatternDetails, Comparable<Patter
|
||||
@Override
|
||||
synchronized public boolean isValidItemForSlot(int slotIndex, ItemStack i, World w)
|
||||
{
|
||||
if ( isCrafting == false )
|
||||
if ( !isCrafting )
|
||||
{
|
||||
throw new RuntimeException( "Only crafting recipes supported." );
|
||||
}
|
||||
@@ -268,7 +268,7 @@ public class PatternHelper implements ICraftingPatternDetails, Comparable<Patter
|
||||
@Override
|
||||
public ItemStack getOutput(InventoryCrafting craftingInv, World w)
|
||||
{
|
||||
if ( isCrafting == false )
|
||||
if ( !isCrafting )
|
||||
throw new RuntimeException( "Only crafting recipes supported." );
|
||||
|
||||
for (int x = 0; x < craftingInv.getSizeInventory(); x++)
|
||||
|
||||
Reference in New Issue
Block a user