diff --git a/Server/Program.cs b/Server/Program.cs index ace64be..cd947a5 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -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); diff --git a/Shared/Packet/Packets/PlayerPacket.cs b/Shared/Packet/Packets/PlayerPacket.cs index 7698fd0..8257c87 100644 --- a/Shared/Packet/Packets/PlayerPacket.cs +++ b/Shared/Packet/Packets/PlayerPacket.cs @@ -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'); } } \ No newline at end of file