Commits

Martoph authored and md_5 committed e14c9acbec5
SPIGOT-6113: Ender Pearls thrown into portals that lead to disabled dimensions crash the server
No tags

nms-patches/EntityEnderPearl.patch

Modified
53 53 + CraftEventFactory.entityDamage = null;
54 54 }
55 55 -
56 56 - entity.enderTeleportTo(this.locX(), this.locY(), this.locZ());
57 57 - entity.fallDistance = 0.0F;
58 58 - entity.damageEntity(DamageSource.FALL, 5.0F);
59 59 + // CraftBukkit end
60 60 }
61 61 } else if (entity != null) {
62 62 entity.enderTeleportTo(this.locX(), this.locY(), this.locZ());
63 +@@ -80,7 +100,7 @@
64 + public Entity b(WorldServer worldserver) {
65 + Entity entity = this.getShooter();
66 +
67 +- if (entity != null && entity.world.getDimensionKey() != worldserver.getDimensionKey()) {
68 ++ if (entity != null && worldserver != null && entity.world.getDimensionKey() != worldserver.getDimensionKey()) { // CraftBukkit - SPIGOT-6113
69 + this.setShooter((Entity) null);
70 + }
71 +

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut