Simplified some control flow statements

This commit is contained in:
thatsIch
2014-10-09 21:33:31 +02:00
parent 6bc002fe63
commit 011ff54224
33 changed files with 64 additions and 78 deletions
@@ -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++)