diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/regions/selector/ExtendingCuboidRegionSelector.java b/worldedit-core/src/main/java/com/sk89q/worldedit/regions/selector/ExtendingCuboidRegionSelector.java index 6ec02ce93..a4db9b9b1 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/regions/selector/ExtendingCuboidRegionSelector.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/regions/selector/ExtendingCuboidRegionSelector.java @@ -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; }