Skip to content

Commit

Permalink
Fixed equal check between Island objects not checking for identical r…
Browse files Browse the repository at this point in the history
…eferences
  • Loading branch information
OmerBenGera committed Sep 23, 2022
1 parent c305316 commit a688694
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -3510,7 +3510,7 @@ public int hashCode() {

@Override
public boolean equals(Object obj) {
return obj instanceof Island && this.uuid.equals(((Island) obj).getUniqueId());
return obj instanceof Island && (this == obj || this.uuid.equals(((Island) obj).getUniqueId()));
}

@Override
Expand Down

0 comments on commit a688694

Please sign in to comment.