2
0
_DS_ 15 жил өмнө
parent
commit
feb7bdbfdc

+ 4 - 0
L2_GameServer/java/net/sf/l2j/gameserver/instancemanager/InstanceManager.java

@@ -55,6 +55,8 @@ public class InstanceManager
 	{
 		for (InstanceWorld temp : _instanceWorlds.values())
 		{
+			if (temp == null)
+				continue;
 			// check if the player have a World Instance where he/she is allowed to enter
 			if (temp.allowed.contains(player.getObjectId()))
 				return temp;
@@ -117,6 +119,8 @@ public class InstanceManager
 	{
 		for (Instance temp : _instanceList.values())
 		{
+			if (temp == null)
+				continue;
 			// check if the player is in any active instance
 			if (temp.containsPlayer(objectId))
 				return temp.getId();