mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 15:00:13 +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
1 changed files with 9 additions and 0 deletions
|
@ -60,3 +60,12 @@
|
||||||
}
|
}
|
||||||
} else if (entity != null) {
|
} else if (entity != null) {
|
||||||
entity.enderTeleportTo(this.locX(), this.locY(), this.locZ());
|
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 a new issue