mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-25 13:30:10 +00:00
remove unneeded equals override in ServerWorldMixin
This commit is contained in:
1 parent
dc8a5933bf
commit
a199ea2c20
1 file changed
-16
-16
@@ -142,20 +142,4 @@ public abstract class ServerWorldMixin {
|
|||||||
public Object terra$getHandle() {
|
public Object terra$getHandle() {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Overridden in the same manner as {@link ChunkRegionMixin#hashCode()}
|
|
||||||
*
|
|
||||||
* @param other Another object
|
|
||||||
*
|
|
||||||
* @return Whether this world is the same as other.
|
|
||||||
*
|
|
||||||
* @see ChunkRegionMixin#hashCode()
|
|
||||||
*/
|
|
||||||
@SuppressWarnings("ConstantConditions")
|
|
||||||
@Override
|
|
||||||
public boolean equals(Object other) {
|
|
||||||
if(!(other instanceof ServerWorldAccess)) return false;
|
|
||||||
return (ServerWorldAccess) this == (((ServerWorldAccess) other).toServerWorld());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user