fixed kit bug
This commit is contained in:
parent
3636fdfba0
commit
5d58c56c27
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user