Revert "Updates Packets & Randomizer (#43)" (#61)

This reverts commit 179cb50557.
This commit is contained in:
Kamron Batman 2019-11-11 08:46:11 -08:00 committed by GitHub
parent 179cb50557
commit c2ecc76457
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
588 changed files with 16260 additions and 10926 deletions

View file

@ -18,6 +18,7 @@
*
***************************************************************************/
using Server.Accounting;
using Server.Network;
namespace Server.Items
@ -53,9 +54,7 @@ namespace Server.Items
{
Owner.PrivateOverheadMessage(MessageType.Regular, 0x3B2, true,
$"Bank container has {TotalItems} items, {TotalWeight} stones", Owner.NetState);
if (Owner.NetState != null)
Packets.SendEquipUpdate(Owner.NetState, this);
Owner.Send(new EquipUpdate(this));
DisplayTo(Owner);
}
}
@ -98,8 +97,8 @@ namespace Server.Items
{
Opened = false;
if (SendDeleteOnClose && Owner != null)
Packets.SendRemoveEntity(Owner.NetState, Serial);
if (SendDeleteOnClose)
Owner?.Send(RemovePacket);
}
public override void OnSingleClick(Mobile from)