Remove double negations
This commit is contained in:
parent
aa15af0a08
commit
bff5a3ec5c
3 changed files with 3 additions and 3 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue