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:
Ursprung
54672a75f6
Commit
da5d494b36
@ -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()));
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren