geforkt von SteamWar/BungeeCore
Hotfix NPE
Dieser Commit ist enthalten in:
Ursprung
203dcdb5dd
Commit
1363ecced8
@ -26,6 +26,7 @@ import de.steamwar.bungeecore.comms.PacketIdManager;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@AllArgsConstructor
|
||||
@ -43,10 +44,12 @@ public class FightEndsPacket extends BungeePacket {
|
||||
blueSchem = byteArrayDataInput.readInt();
|
||||
redSchem = byteArrayDataInput.readInt();
|
||||
int blueSize = byteArrayDataInput.readInt();
|
||||
bluePlayers = new ArrayList<>(blueSize);
|
||||
for (int i = 0; i < blueSize; i++) {
|
||||
bluePlayers.add(byteArrayDataInput.readInt());
|
||||
}
|
||||
int redSize = byteArrayDataInput.readInt();
|
||||
redPlayers = new ArrayList<>(redSize);
|
||||
for (int i = 0; i < redSize; i++) {
|
||||
redPlayers.add(byteArrayDataInput.readInt());
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren