fixed npe in kit npc creation
This commit is contained in:
parent
b8b260bca1
commit
92a2c2ebaa
@ -563,9 +563,9 @@ public class GameLobbyManager implements Listener, IPacketHandler
|
||||
double space = 4;
|
||||
double offset = (divide-1)*space/2d;
|
||||
|
||||
for (int i=0 ; i<divide ; i++)
|
||||
for (int i=0 ; i<kits.size()-divide ; i++)
|
||||
{
|
||||
Kit kit = kits.get(i + (divide+1));
|
||||
Kit kit = kits.get(i + divide);
|
||||
|
||||
if (kit.GetAvailability() == KitAvailability.Null)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user