Remove double negations
This commit is contained in:
@@ -151,7 +151,7 @@ public class ContainerCraftConfirm extends AEBaseContainer
|
||||
if ( matched )
|
||||
matches++;
|
||||
|
||||
if ( !found != matched )
|
||||
if ( found == !matched )
|
||||
changed = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ public class ContainerCraftingStatus extends ContainerCraftingCPU
|
||||
if ( matched )
|
||||
matches++;
|
||||
|
||||
if ( !found != matched )
|
||||
if ( found == !matched )
|
||||
changed = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ public class PartToggleBus extends PartBasicState
|
||||
private void updateInternalState()
|
||||
{
|
||||
boolean intention = getIntention();
|
||||
if ( intention != (connection != null) )
|
||||
if ( intention == ( connection == null ) )
|
||||
{
|
||||
if ( proxy.getNode() != null && outerProxy.getNode() != null )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user