fix EphemeralBiomeDelegate hashCode & equals

This commit is contained in:
dfsek
2021-12-08 21:26:59 -07:00
parent 66126067c0
commit 0e6b93023c

View File

@@ -34,4 +34,16 @@ final class EphemeralBiomeDelegate implements BiomeDelegate {
public boolean isEphemeral() {
return true;
}
@Override
public int hashCode() {
return id.hashCode();
}
@Override
public boolean equals(Object obj) {
if(!(obj instanceof EphemeralBiomeDelegate that)) return false;
return this.id.equals(that.id);
}
}