Fixes a NPE, Close GH-72

This commit is contained in:
Sotr
2019-03-20 15:18:13 +08:00
parent 78e8833518
commit f28d4c189d

View File

@@ -1572,6 +1572,7 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable {
// Akarin end
public final void a(Packet<?> packet, @Nullable GenericFutureListener<? extends Future<? super Void>> genericfuturelistener) { // Akarin - add final
if (packet == null) return; // Akarin - GH-72
if (packet.getType() == PacketType.PLAY_OUT_CHAT) { // Akarin
PacketPlayOutChat packetplayoutchat = (PacketPlayOutChat) packet;
EntityHuman.EnumChatVisibility entityhuman_enumchatvisibility = this.player.getChatFlags();