SPIGOT-7048: addPassenger() not working when vehicle is player

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2022-06-10 10:39:19 +10:00
parent 85ee50d5f1
commit 29db051e6e

View file

@ -27,6 +27,15 @@
this.ap = Vec3D.ZERO;
this.lastPassengers = Collections.emptyList();
this.level = worldserver;
@@ -80,7 +90,7 @@
if (!list.equals(this.lastPassengers)) {
this.lastPassengers = list;
- this.broadcast.accept(new PacketPlayOutMount(this.entity));
+ this.broadcastAndSend(new PacketPlayOutMount(this.entity)); // CraftBukkit
}
Entity entity = this.entity;
@@ -88,18 +98,18 @@
if (entity instanceof EntityItemFrame) {
EntityItemFrame entityitemframe = (EntityItemFrame) entity;