Simplified some control flow statements
This commit is contained in:
@@ -290,7 +290,7 @@ public class ContainerCraftConfirm extends AEBaseContainer
|
||||
if ( ah instanceof PartPatternTerminal )
|
||||
OriginalGui = GuiBridge.GUI_PATTERN_TERMINAL;
|
||||
|
||||
if ( result != null && simulation == false )
|
||||
if ( result != null && !simulation )
|
||||
{
|
||||
ICraftingGrid cc = getGrid().getCache( ICraftingGrid.class );
|
||||
ICraftingLink g = cc.submitJob( result, null, selectedCpu == -1 ? null : cpus.get( selectedCpu ).cpu, true, getActionSrc() );
|
||||
|
||||
@@ -107,7 +107,7 @@ public class ContainerInscriber extends ContainerUpgradeable implements IProgres
|
||||
}
|
||||
}
|
||||
|
||||
if ( matches && found == false )
|
||||
if ( matches && !found )
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -291,10 +291,11 @@ public class ContainerPatternTerm extends ContainerMEMonitorable implements IAEA
|
||||
public boolean isSlotEnabled(int idx)
|
||||
{
|
||||
if ( idx == 1 )
|
||||
return Platform.isServer() ? ct.isCraftingRecipe() == false : craftingMode == false;
|
||||
if ( idx == 2 )
|
||||
return Platform.isServer() ? ct.isCraftingRecipe() == true : craftingMode == true;
|
||||
return false;
|
||||
return Platform.isServer() ? !ct.isCraftingRecipe() : !craftingMode;
|
||||
else if ( idx == 2 )
|
||||
return Platform.isServer() ? ct.isCraftingRecipe() : craftingMode;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user