Archiviert
1
0

Fix FightEndsPacket

Dieser Commit ist enthalten in:
yoyosource 2022-03-10 22:05:34 +01:00
Ursprung 1363ecced8
Commit 28e2ca8d17

Datei anzeigen

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