13
0
geforkt von Mirrors/Paper

Update players when coming into view of vehicle. Fixes BUKKIT-4628

When only considering trackers from player perspective, attach entity
packet could be sent before a packet for a respective vehicle is in view
and will, in turn, be ignored.

This adds another notification when the vehicle comes into view to cover
all cases.
Dieser Commit ist enthalten in:
Wesley Wolfe 2013-08-03 17:03:49 -05:00
Ursprung 54672a75f6
Commit da5d494b36

Datei anzeigen

@ -347,6 +347,12 @@ public class EntityTrackerEntry {
entityplayer.playerConnection.sendPacket(new Packet39AttachEntity(0, this.tracker, this.tracker.vehicle));
}
// CraftBukkit start
if (this.tracker.passenger != null) {
entityplayer.playerConnection.sendPacket(new Packet39AttachEntity(0, this.tracker.passenger, this.tracker));
}
// CraftBukkit end
if (this.tracker instanceof EntityInsentient && ((EntityInsentient) this.tracker).bI() != null) {
entityplayer.playerConnection.sendPacket(new Packet39AttachEntity(1, this.tracker, ((EntityInsentient) this.tracker).bI()));
}