Merge pull request #281 from thatsIch/controlflow

Simplified some control flow statements
This commit is contained in:
Chris
2014-10-09 13:22:55 -07:00
33 changed files with 64 additions and 78 deletions
@@ -335,7 +335,7 @@ public abstract class AEBaseGui extends GuiContainer
return;
}
if ( disableShiftClick == false && isShiftKeyDown() )
if ( !disableShiftClick && isShiftKeyDown() )
{
disableShiftClick = true;
@@ -307,8 +307,8 @@ public class GuiCraftConfirm extends AEBaseGui
{
updateCPUButtonText();
start.enabled = ccc.noCPU || isSimulation() ? false : true;
selectCPU.enabled = isSimulation() ? false : true;
start.enabled = !(ccc.noCPU || isSimulation());
selectCPU.enabled = !isSimulation();
int x = 0;
int y = 0;
@@ -109,7 +109,7 @@ public class BusRenderHelper implements IPartRenderHelper
int renderingForPass = 0;
int currentPass = 0;
int itemsRendered = 0;
final boolean noAlphaPass = AEConfig.instance.isFeatureEnabled( AEFeature.AlphaPass ) == false;
final boolean noAlphaPass = !AEConfig.instance.isFeatureEnabled( AEFeature.AlphaPass );
public int getItemsRendered()
{
@@ -22,7 +22,7 @@ public class ItemEncodedPatternRenderer implements IItemRenderer
{
boolean isShiftHeld = Keyboard.isKeyDown( Keyboard.KEY_LSHIFT ) || Keyboard.isKeyDown( Keyboard.KEY_RSHIFT );
if ( recursive == false && type == IItemRenderer.ItemRenderType.INVENTORY && isShiftHeld )
if ( !recursive && type == IItemRenderer.ItemRenderType.INVENTORY && isShiftHeld )
{
ItemEncodedPattern iep = (ItemEncodedPattern) item.getItem();
if ( iep.getOutput( item ) != null )