3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-03 14:50:19 +01:00

Fix NPE when a TitlePacket of type TIMES is sent (#1944)

References: https://github.com/bundabrg/GeyserReversion/issues/29

Co-authored-by: bundabrg <bundabrg@grieve.com.au>
Dieser Commit ist enthalten in:
bundabrg 2021-02-17 13:58:08 +08:00 committet von GitHub
Ursprung fc712ea892
Commit 15027c222e
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -71,6 +71,7 @@ public class JavaTitleTranslator extends PacketTranslator<ServerTitlePacket> {
titlePacket.setFadeInTime(packet.getFadeIn()); titlePacket.setFadeInTime(packet.getFadeIn());
titlePacket.setFadeOutTime(packet.getFadeOut()); titlePacket.setFadeOutTime(packet.getFadeOut());
titlePacket.setStayTime(packet.getStay()); titlePacket.setStayTime(packet.getStay());
titlePacket.setText("");
break; break;
} }