mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 18:27:17 +01:00
SPIGOT-7048: addPassenger() not working when vehicle is player
By: md_5 <git@md-5.net>
This commit is contained in:
parent
85ee50d5f1
commit
29db051e6e
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue