Archiviert
1
0

Merge pull request 'Fix FightEndsPacket' (#305) from FixRanked into master

Reviewed-on: SteamWar/BungeeCore#305
Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Lixfel 2022-03-11 09:03:57 +01:00
Commit c8642b7978

Datei anzeigen

@ -38,6 +38,7 @@ public class FightEndsPacket extends BungeePacket {
private int redSchem;
private List<Integer> bluePlayers;
private List<Integer> redPlayers;
private String gameMode;
public FightEndsPacket(ByteArrayDataInput byteArrayDataInput) {
win = byteArrayDataInput.readByte();
@ -53,6 +54,7 @@ public class FightEndsPacket extends BungeePacket {
for (int i = 0; i < redSize; i++) {
redPlayers.add(byteArrayDataInput.readInt());
}
gameMode = byteArrayDataInput.readUTF();
}
@Override
@ -73,5 +75,6 @@ public class FightEndsPacket extends BungeePacket {
for (int i : redPlayers) {
byteArrayDataOutput.writeInt(i);
}
byteArrayDataOutput.writeUTF(gameMode);
}
}