Hack fixed

This commit is contained in:
Sanae 2022-02-22 14:11:06 -06:00
parent 954f9db537
commit a554af2a44
2 changed files with 1 additions and 4 deletions

View File

@ -37,9 +37,6 @@ bool flipEnabled = Settings.Instance.Flip.EnabledOnStart;
float MarioSize(bool is2d) => is2d ? 180 : 160;
server.PacketHandler = (c, p) => {
if (p is PlayerPacket pp) {
Console.WriteLine($"{c.Id} hack {pp.Hack}");
}
switch (p) {
case CostumePacket:
ClientSyncShineBag(c);

View File

@ -77,6 +77,6 @@ public struct PlayerPacket : IPacket {
offset += NameSize;
SubAct = Encoding.UTF8.GetString(data[offset..(offset + NameSize)]).TrimEnd('\0');
offset += NameSize;
SubAct = Encoding.UTF8.GetString(data[offset..(offset + NameSize)]).TrimEnd('\0');
Hack = Encoding.UTF8.GetString(data[offset..(offset + NameSize)]).TrimEnd('\0');
}
}