Cleanup asserts, condition in extending selector

This commit is contained in:
Octavia Togami 2020-07-07 12:54:13 -07:00
parent 21adeae496
commit 50a744f434

View File

@ -87,7 +87,7 @@ public ExtendingCuboidRegionSelector(@Nullable World world, BlockVector3 positio
@Override
public boolean selectPrimary(BlockVector3 position, SelectorLimits limits) {
if (position1 != null && position2 != null && position.equals(position1) && position.equals(position2)) {
if (position.equals(position1) && position.equals(position2)) {
return false;
}
@ -122,9 +122,9 @@ public boolean selectSecondary(BlockVector3 position, SelectorLimits limits) {
region.setPos1(position1);
region.setPos2(position2);
assert (region.contains(o1));
assert (region.contains(o2));
assert (region.contains(position));
assert region.contains(o1);
assert region.contains(o2);
assert region.contains(position);
return true;
}