remove unneeded equals override in ServerWorldMixin

This commit is contained in:
dfsek 2021-12-21 01:15:28 -07:00
parent dc8a5933bf
commit a199ea2c20

View File

@ -142,20 +142,4 @@ public abstract class ServerWorldMixin {
public Object terra$getHandle() {
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());
}
}