mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-25 13:30:10 +00:00
fix EphemeralBiomeDelegate hashCode & equals
This commit is contained in:
1 parent
66126067c0
commit
0e6b93023c
1 file changed
+12
+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