diff --git a/src/de/steamwar/bungeecore/comms/packets/FightEndsPacket.java b/src/de/steamwar/bungeecore/comms/packets/FightEndsPacket.java index cd9d4ea4..5a6ec0d8 100644 --- a/src/de/steamwar/bungeecore/comms/packets/FightEndsPacket.java +++ b/src/de/steamwar/bungeecore/comms/packets/FightEndsPacket.java @@ -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()); }