mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-22 03:05:16 +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;
|
float MarioSize(bool is2d) => is2d ? 180 : 160;
|
||||||
server.PacketHandler = (c, p) => {
|
server.PacketHandler = (c, p) => {
|
||||||
if (p is PlayerPacket pp) {
|
|
||||||
Console.WriteLine($"{c.Id} hack {pp.Hack}");
|
|
||||||
}
|
|
||||||
switch (p) {
|
switch (p) {
|
||||||
case CostumePacket:
|
case CostumePacket:
|
||||||
ClientSyncShineBag(c);
|
ClientSyncShineBag(c);
|
||||||
|
|
|
@ -77,6 +77,6 @@ public struct PlayerPacket : IPacket {
|
||||||
offset += NameSize;
|
offset += NameSize;
|
||||||
SubAct = Encoding.UTF8.GetString(data[offset..(offset + NameSize)]).TrimEnd('\0');
|
SubAct = Encoding.UTF8.GetString(data[offset..(offset + NameSize)]).TrimEnd('\0');
|
||||||
offset += NameSize;
|
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