fix(party): Converts party packets (#401)

- [X] Converts party packets
This commit is contained in:
Kamron Batman 2021-01-10 14:23:10 -08:00 committed by GitHub
parent f52e63f320
commit f4dd7c8e7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 459 additions and 197 deletions

View file

@ -1151,9 +1151,9 @@ namespace Server
{
if (state.HighSeas)
{
if (hsWorldItem[0] == 0)
var length = OutgoingItemPackets.CreateWorldItemNew(hsWorldItem, this, true);
if (length != hsWorldItem.Length)
{
var length = OutgoingItemPackets.CreateWorldItemNew(hsWorldItem, this, true);
hsWorldItem = hsWorldItem.Slice(0, length);
}
@ -1161,9 +1161,9 @@ namespace Server
}
else if (state.StygianAbyss)
{
if (saWorldItem[0] == 0)
var length = OutgoingItemPackets.CreateWorldItemNew(saWorldItem, this, false);
if (length != saWorldItem.Length)
{
var length = OutgoingItemPackets.CreateWorldItemNew(saWorldItem, this, false);
saWorldItem = saWorldItem.Slice(0, length);
}
@ -1171,9 +1171,9 @@ namespace Server
}
else
{
if (oldWorldItem[0] == 0)
var length = OutgoingItemPackets.CreateWorldItem(oldWorldItem, this);
if (length != oldWorldItem.Length)
{
var length = OutgoingItemPackets.CreateWorldItem(oldWorldItem, this);
oldWorldItem = oldWorldItem.Slice(0, length);
}
@ -3091,11 +3091,7 @@ namespace Server
return;
}
if (opl[0] == 0)
{
OutgoingEntityPackets.CreateOPLInfo(opl, this);
}
OutgoingEntityPackets.CreateOPLInfo(opl, this);
ns.Send(opl);
}