mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 14:21:08 +00:00
fix DelegatedBiome hashCode & equals
This commit is contained in:
+11
@@ -17,6 +17,17 @@ final class DelegatedBiome implements BiomeDelegate {
|
|||||||
return biome;
|
return biome;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return biome.hashCode();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if(!(obj instanceof DelegatedBiome that)) return false;
|
||||||
|
return that.biome.equals(this.biome);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<String> getTags() {
|
public Set<String> getTags() {
|
||||||
return biome.getTags();
|
return biome.getTags();
|
||||||
|
|||||||
Reference in New Issue
Block a user