Commits
Martoph authored and md_5 committed e14c9acbec5
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 + | |
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 + |