mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-15 12:02:49 +01:00
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.
This commit is contained in:
parent
54672a75f6
commit
da5d494b36
1 changed files with 6 additions and 0 deletions
|
@ -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()));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue