From a554af2a4407f5234ba1a584d4d9ad3b28dc8bfe Mon Sep 17 00:00:00 2001 From: Sanae Date: Tue, 22 Feb 2022 14:11:06 -0600 Subject: [PATCH] Hack fixed --- Server/Program.cs | 3 --- Shared/Packet/Packets/PlayerPacket.cs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) 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