SPIGOT-3141: Missing TeleportCause.SPECTATE when lift clicking spectate

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2017-03-24 15:08:19 +11:00
parent f0c1225026
commit 100722e44b
2 changed files with 56 additions and 42 deletions

View File

@@ -494,6 +494,15 @@
this.locale = packetplayinsettings.a();
this.cg = packetplayinsettings.c();
this.ch = packetplayinsettings.d();
@@ -931,7 +1126,7 @@
this.cj = (Entity) (entity == null ? this : entity);
if (entity1 != this.cj) {
this.playerConnection.sendPacket(new PacketPlayOutCamera(this.cj));
- this.enderTeleportTo(this.cj.locX, this.cj.locY, this.cj.locZ);
+ this.playerConnection.a(this.cj.locX, this.cj.locY, this.cj.locZ, this.yaw, this.pitch, TeleportCause.SPECTATE); // CraftBukkit
}
}
@@ -958,7 +1153,7 @@
@Nullable