mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-01-24 12:44:56 +08:00
Cleanup asserts, condition in extending selector
This commit is contained in:
parent
21adeae496
commit
50a744f434
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user