mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-02 16:05:29 +00:00
remove unneeded equals override in ServerWorldMixin
This commit is contained in:
parent
dc8a5933bf
commit
a199ea2c20
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user