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

This commit is contained in:
md_5 2022-06-10 10:39:19 +10:00
parent 3aa7836df4
commit 6209029ea8
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

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;