diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/L2WorldRegion.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/L2WorldRegion.java index 450bb4bda4..ee5cc80bf4 100644 --- a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/L2WorldRegion.java +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/L2WorldRegion.java @@ -172,7 +172,7 @@ public final class L2WorldRegion public boolean areNeighborsEmpty() { - return !forEachSurroundingRegion(w -> + return forEachSurroundingRegion(w -> { return !(w.isActive() && w.getVisibleObjects().values().stream().anyMatch(L2Object::isPlayable)); }); diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/L2WorldRegion.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/L2WorldRegion.java index 450bb4bda4..ee5cc80bf4 100644 --- a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/L2WorldRegion.java +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/L2WorldRegion.java @@ -172,7 +172,7 @@ public final class L2WorldRegion public boolean areNeighborsEmpty() { - return !forEachSurroundingRegion(w -> + return forEachSurroundingRegion(w -> { return !(w.isActive() && w.getVisibleObjects().values().stream().anyMatch(L2Object::isPlayable)); }); diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/L2WorldRegion.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/L2WorldRegion.java index 450bb4bda4..ee5cc80bf4 100644 --- a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/L2WorldRegion.java +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/L2WorldRegion.java @@ -172,7 +172,7 @@ public final class L2WorldRegion public boolean areNeighborsEmpty() { - return !forEachSurroundingRegion(w -> + return forEachSurroundingRegion(w -> { return !(w.isActive() && w.getVisibleObjects().values().stream().anyMatch(L2Object::isPlayable)); }); diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/L2WorldRegion.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/L2WorldRegion.java index 450bb4bda4..ee5cc80bf4 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/L2WorldRegion.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/L2WorldRegion.java @@ -172,7 +172,7 @@ public final class L2WorldRegion public boolean areNeighborsEmpty() { - return !forEachSurroundingRegion(w -> + return forEachSurroundingRegion(w -> { return !(w.isActive() && w.getVisibleObjects().values().stream().anyMatch(L2Object::isPlayable)); });