3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-15 20:40:07 +01:00

SPIGOT-4478: NPE during PlayerLoginEvent recipe manipulation

Dieser Commit ist enthalten in:
md_5 2018-11-10 20:30:58 +11:00
Ursprung 3697ec7a60
Commit 1663a63de2

Datei anzeigen

@ -17,3 +17,11 @@
this.a(minecraftkey);
this.c(minecraftkey);
arraylist.add(minecraftkey);
@@ -61,6 +62,7 @@
}
private void a(PacketPlayOutRecipes.Action packetplayoutrecipes_action, EntityPlayer entityplayer, List<MinecraftKey> list) {
+ if (entityplayer.playerConnection == null) return; // SPIGOT-4478 during PlayerLoginEvent
entityplayer.playerConnection.sendPacket(new PacketPlayOutRecipes(packetplayoutrecipes_action, list, Collections.emptyList(), this.c, this.d, this.e, this.f));
}