mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
SPIGOT-7048: addPassenger() not working when vehicle is player
This commit is contained in:
parent
3aa7836df4
commit
6209029ea8
1 changed files with 9 additions and 0 deletions
|
@ -27,6 +27,15 @@
|
||||||
this.ap = Vec3D.ZERO;
|
this.ap = Vec3D.ZERO;
|
||||||
this.lastPassengers = Collections.emptyList();
|
this.lastPassengers = Collections.emptyList();
|
||||||
this.level = worldserver;
|
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 @@
|
@@ -88,18 +98,18 @@
|
||||||
if (entity instanceof EntityItemFrame) {
|
if (entity instanceof EntityItemFrame) {
|
||||||
EntityItemFrame entityitemframe = (EntityItemFrame) entity;
|
EntityItemFrame entityitemframe = (EntityItemFrame) entity;
|
||||||
|
|
Loading…
Add table
Reference in a new issue