SteamWar/SpigotCore
Archiviert
13
0

Fix unknown constructor
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
zOnlyKroks 2022-08-06 21:05:15 +02:00
Ursprung 0a6eccf70f
Commit 71f7264789

Datei anzeigen

@ -40,6 +40,11 @@ public class ChatWrapper19 implements ChatWrapper {
@Override @Override
public Object modifyServerDataPacket(Object o) { public Object modifyServerDataPacket(Object o) {
ClientboundServerDataPacket clientboundServerDataPacket = (ClientboundServerDataPacket) o; ClientboundServerDataPacket clientboundServerDataPacket = (ClientboundServerDataPacket) o;
return new ClientboundServerDataPacket(clientboundServerDataPacket.b().get(),clientboundServerDataPacket.c().get(),true); try{
o.getClass().getDeclaredField("c").setBoolean(clientboundServerDataPacket,true);
}catch (NoSuchFieldException | IllegalAccessException e) {
//ignore
}
return clientboundServerDataPacket;
} }
} }