fixed kit bug

This commit is contained in:
Cheese 2015-10-31 18:31:13 +11:00
parent 3636fdfba0
commit 5d58c56c27

View File

@ -554,6 +554,8 @@ public class GameLobbyManager implements Listener, IPacketHandler
continue; continue;
_kits.put(ent, new LobbyEnt(ent, entLoc, kit)); _kits.put(ent, new LobbyEnt(ent, entLoc, kit));
System.out.println("Creating Kit NPC: " + kit.GetName() + " at " + UtilWorld.locToStrClean(entLoc));
} }
} }
{ {
@ -563,7 +565,7 @@ public class GameLobbyManager implements Listener, IPacketHandler
for (int i=0 ; i<divide ; i++) for (int i=0 ; i<divide ; i++)
{ {
Kit kit = kits.get(i + divide); Kit kit = kits.get(i + (divide+1));
if (kit.GetAvailability() == KitAvailability.Null) if (kit.GetAvailability() == KitAvailability.Null)
continue; continue;
@ -585,6 +587,8 @@ public class GameLobbyManager implements Listener, IPacketHandler
continue; continue;
_kits.put(ent, new LobbyEnt(ent, entLoc, kit)); _kits.put(ent, new LobbyEnt(ent, entLoc, kit));
System.out.println("Creating Kit NPC: " + kit.GetName() + " at " + UtilWorld.locToStrClean(entLoc));
} }
} }