mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 02:25:28 +01:00
SPIGOT-6113: Ender Pearls thrown into portals that lead to disabled dimensions crash the server
This commit is contained in:
parent
97da39889c
commit
e14c9acbec
@ -60,3 +60,12 @@
|
||||
}
|
||||
} else if (entity != null) {
|
||||
entity.enderTeleportTo(this.locX(), this.locY(), this.locZ());
|
||||
@@ -80,7 +100,7 @@
|
||||
public Entity b(WorldServer worldserver) {
|
||||
Entity entity = this.getShooter();
|
||||
|
||||
- if (entity != null && entity.world.getDimensionKey() != worldserver.getDimensionKey()) {
|
||||
+ if (entity != null && worldserver != null && entity.world.getDimensionKey() != worldserver.getDimensionKey()) { // CraftBukkit - SPIGOT-6113
|
||||
this.setShooter((Entity) null);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user