mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-26 13:09:22 +01:00
Made equals proper
This commit is contained in:
parent
e2e2241e63
commit
ff70e6d53d
1 changed files with 2 additions and 2 deletions
|
@ -188,8 +188,8 @@ public class LaserRelayConnectionHandler{
|
|||
public boolean equals(Object obj){
|
||||
if(obj instanceof ConnectionPair){
|
||||
ConnectionPair pair = (ConnectionPair)obj;
|
||||
if(this.firstRelay != null && this.firstRelay.equals(pair.firstRelay)){
|
||||
if(this.secondRelay != null && this.secondRelay.equals(pair.secondRelay)){
|
||||
if(this.firstRelay == pair.firstRelay || (this.firstRelay != null && this.firstRelay.equals(pair.firstRelay))){
|
||||
if(this.secondRelay == pair.secondRelay && (this.secondRelay != null && this.secondRelay.equals(pair.secondRelay))){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue