mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-21 18:55:17 +00:00
Hack fixed
This commit is contained in:
parent
954f9db537
commit
a554af2a44
2 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue