SPIGOT-7587: Remove fixes for now-resolved MC-142590 and MC-109346

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot
2024-03-10 09:20:54 +11:00
parent 39994359d1
commit 064818a555
3 changed files with 5 additions and 28 deletions

View File

@@ -113,22 +113,15 @@
if (!collection.isEmpty()) {
consumer.accept(new PacketPlayOutUpdateAttributes(this.entity.getId(), collection));
}
@@ -303,7 +342,14 @@
@@ -303,6 +342,7 @@
if (!list.isEmpty()) {
consumer.accept(new PacketPlayOutEntityEquipment(this.entity.getId(), list));
}
+ ((EntityLiving) this.entity).detectEquipmentUpdatesPublic(); // 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()) {
consumer.accept(new PacketPlayOutMount(this.entity));
@@ -338,6 +384,11 @@
@@ -338,6 +378,11 @@
Set<AttributeModifiable> set = ((EntityLiving) this.entity).getAttributes().getDirtyAttributes();
if (!set.isEmpty()) {