SPIGOT-3141: Missing TeleportCause.SPECTATE when lift clicking spectate
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user