fix: Fixes expansion flags for animations (#1009)

This commit is contained in:
Kamron Batman 2022-05-01 18:35:42 -07:00 committed by GitHub
parent d1a3c9b0c7
commit 8f1240d25e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 80 deletions

View file

@ -160,6 +160,11 @@ public static class OutgoingAccountPackets
}
}
if (ExpansionInfo.ForceOldAnimations)
{
flags &= ~FeatureFlags.LBR;
}
var length = ns.ExtendedSupportedFeatures ? 5 : 3;
var writer = new SpanWriter(stackalloc byte[length]);
writer.Write((byte)0xB9); // Packet ID