Removed some redundant code

This commit is contained in:
MattBDev
2020-01-26 16:03:10 -05:00
parent 5d5ee7e61e
commit 995e1261e5
2 changed files with 8 additions and 22 deletions

View File

@ -129,7 +129,7 @@ public class CuboidRegionSelector implements RegionSelector, CUIRegion {
public boolean selectPrimary(BlockVector3 position, SelectorLimits limits) {
checkNotNull(position);
if (position1 != null && position.equals(position1)) {
if (position.equals(position1)) {
return false;
}
@ -142,7 +142,7 @@ public class CuboidRegionSelector implements RegionSelector, CUIRegion {
public boolean selectSecondary(BlockVector3 position, SelectorLimits limits) {
checkNotNull(position);
if (position2 != null && position.equals(position2)) {
if (position.equals(position2)) {
return false;
}