From 8b277612a9cae005569a2868101686ae9313a95e Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 31 Jan 2021 14:26:05 +1100 Subject: [PATCH] SPIGOT-6208: Throwing ender pearl into end portal causes NPE By: Parker Hawke --- paper-server/nms-patches/ChunkMapDistance.patch | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/paper-server/nms-patches/ChunkMapDistance.patch b/paper-server/nms-patches/ChunkMapDistance.patch index 5a7f15d082..2949966983 100644 --- a/paper-server/nms-patches/ChunkMapDistance.patch +++ b/paper-server/nms-patches/ChunkMapDistance.patch @@ -101,7 +101,15 @@ } public void addTicket(TicketType tickettype, ChunkCoordIntPair chunkcoordintpair, int i, T t0) { -@@ -251,6 +281,26 @@ +@@ -210,6 +240,7 @@ + public void b(SectionPosition sectionposition, EntityPlayer entityplayer) { + long i = sectionposition.r().pair(); + ObjectSet objectset = (ObjectSet) this.c.get(i); ++ if (objectset == null) return; // CraftBukkit - SPIGOT-6208 + + objectset.remove(entityplayer); + if (objectset.isEmpty()) { +@@ -251,6 +282,26 @@ return this.i.a(); }