mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 06:40:55 +00:00
fix EphemeralBiomeDelegate hashCode & equals
This commit is contained in:
+12
@@ -34,4 +34,16 @@ final class EphemeralBiomeDelegate implements BiomeDelegate {
|
|||||||
public boolean isEphemeral() {
|
public boolean isEphemeral() {
|
||||||
return true;
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user