mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-13 15:08:35 +00:00
Handle null case in equality checking BlockVector3+DFSNode
This commit is contained in:
@ -128,7 +128,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;
|
||||
}
|
||||
|
||||
@ -141,7 +141,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;
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,7 @@ public class ExtendingCuboidRegionSelector extends CuboidRegionSelector {
|
||||
|
||||
@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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user