Skip to content

Commit

Permalink
fix noted cuboid hash handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 5, 2020
1 parent 71c601c commit cd19885
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -197,6 +197,9 @@ public ObjectTag duplicate() {

@Override
public int hashCode() {
if (noteName != null) {
return noteName.hashCode();
}
return pairs.size() + pairs.get(0).low.hashCode();
}

Expand Down Expand Up @@ -687,6 +690,7 @@ public void makeUnique(String id) {

@Override
public void forget() {
noteName = null;
NotableManager.remove(this);
}

Expand Down

0 comments on commit cd19885

Please sign in to comment.