geforkt von Mirrors/Paper
#1232: Re-add fix for player rotation
By: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
Dieser Commit ist enthalten in:
Ursprung
e00c85fd8c
Commit
1b9d617ddc
@ -113,15 +113,23 @@
|
||||
if (!collection.isEmpty()) {
|
||||
consumer.accept(new PacketPlayOutUpdateAttributes(this.entity.getId(), collection));
|
||||
}
|
||||
@@ -300,6 +339,7 @@
|
||||
@@ -300,8 +339,15 @@
|
||||
if (!list.isEmpty()) {
|
||||
consumer.accept(new PacketPlayOutEntityEquipment(this.entity.getId(), list));
|
||||
}
|
||||
+ ((EntityLiving) this.entity).detectEquipmentUpdates(); // CraftBukkit - SPIGOT-3789: sync again immediately after sending
|
||||
}
|
||||
|
||||
+ // CraftBukkit start - MC-109346: Fix for nonsensical head yaw
|
||||
+ if (this.entity instanceof EntityPlayer) {
|
||||
+ consumer.accept(new PacketPlayOutEntityHeadRotation(this.entity, (byte) MathHelper.floor(this.entity.getYHeadRot() * 256.0F / 360.0F)));
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
if (!this.entity.getPassengers().isEmpty()) {
|
||||
@@ -333,6 +373,11 @@
|
||||
consumer.accept(new PacketPlayOutMount(this.entity));
|
||||
}
|
||||
@@ -333,6 +379,11 @@
|
||||
Set<AttributeModifiable> set = ((EntityLiving) this.entity).getAttributes().getDirtyAttributes();
|
||||
|
||||
if (!set.isEmpty()) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren