Fixed SurroundingRegion check.

This commit is contained in:
MobiusDev 2017-09-26 14:48:47 +00:00
parent 47c38e35cb
commit 9816651177
4 changed files with 4 additions and 4 deletions

View File

@ -172,7 +172,7 @@ public final class L2WorldRegion
public boolean areNeighborsEmpty() public boolean areNeighborsEmpty()
{ {
return !forEachSurroundingRegion(w -> return forEachSurroundingRegion(w ->
{ {
return !(w.isActive() && w.getVisibleObjects().values().stream().anyMatch(L2Object::isPlayable)); return !(w.isActive() && w.getVisibleObjects().values().stream().anyMatch(L2Object::isPlayable));
}); });

View File

@ -172,7 +172,7 @@ public final class L2WorldRegion
public boolean areNeighborsEmpty() public boolean areNeighborsEmpty()
{ {
return !forEachSurroundingRegion(w -> return forEachSurroundingRegion(w ->
{ {
return !(w.isActive() && w.getVisibleObjects().values().stream().anyMatch(L2Object::isPlayable)); return !(w.isActive() && w.getVisibleObjects().values().stream().anyMatch(L2Object::isPlayable));
}); });

View File

@ -172,7 +172,7 @@ public final class L2WorldRegion
public boolean areNeighborsEmpty() public boolean areNeighborsEmpty()
{ {
return !forEachSurroundingRegion(w -> return forEachSurroundingRegion(w ->
{ {
return !(w.isActive() && w.getVisibleObjects().values().stream().anyMatch(L2Object::isPlayable)); return !(w.isActive() && w.getVisibleObjects().values().stream().anyMatch(L2Object::isPlayable));
}); });

View File

@ -172,7 +172,7 @@ public final class L2WorldRegion
public boolean areNeighborsEmpty() public boolean areNeighborsEmpty()
{ {
return !forEachSurroundingRegion(w -> return forEachSurroundingRegion(w ->
{ {
return !(w.isActive() && w.getVisibleObjects().values().stream().anyMatch(L2Object::isPlayable)); return !(w.isActive() && w.getVisibleObjects().values().stream().anyMatch(L2Object::isPlayable));
}); });