fix(core): Fixes OPL packets (#395)
- [X] Fixes an issue with OPL packets using the wrong endianness and not updating the position properly. - [X] Fixes an issue with SpanWriter not updating bytes written when it is used adhoc. - [X] Moves packet creation for OPL inside the SendInfoTo function. Bumps release version
This commit is contained in:
parent
1a593089e9
commit
5882b1ab3f
6 changed files with 17 additions and 10 deletions
|
|
@ -825,7 +825,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
public override void SendInfoTo(NetState ns, ReadOnlySpan<byte> world, ReadOnlySpan<byte> opl = default)
|
||||
public override void SendInfoTo(NetState ns, ReadOnlySpan<byte> world, Span<byte> opl)
|
||||
{
|
||||
base.SendInfoTo(ns, world, opl);
|
||||
|
||||
|
|
|
|||
|
|
@ -888,7 +888,7 @@ namespace Server.Multis
|
|||
stateToSend.SendGeneralInfoTo(ns);
|
||||
}
|
||||
|
||||
public override void SendInfoTo(NetState ns, ReadOnlySpan<byte> world, ReadOnlySpan<byte> opl = default)
|
||||
public override void SendInfoTo(NetState ns, ReadOnlySpan<byte> world, Span<byte> opl)
|
||||
{
|
||||
base.SendInfoTo(ns, world, opl);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue