mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Improved the readability of BaseBlock.equals.
This commit is contained in:
parent
9a000de7cf
commit
da37f5424c
@ -140,7 +140,12 @@ public class BaseBlock extends Block {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return getType() == ((BaseBlock) o).getType() && getData() == ((BaseBlock) o).getData();
|
final BaseBlock otherBlock = (BaseBlock) o;
|
||||||
|
if (getType() != otherBlock.getType()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return getData() == otherBlock.getData();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user