mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 11:24:11 +01:00
SPIGOT-6208: Throwing ender pearl into end portal causes NPE
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
parent
04c4f1b337
commit
8b277612a9
1 changed files with 9 additions and 1 deletions
|
@ -101,7 +101,15 @@
|
|||
}
|
||||
|
||||
public <T> void addTicket(TicketType<T> 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<EntityPlayer> 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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue