private void PrepareBags(Item item)
{
if (!item.IsBag)
return;
if (item.Data.BagWidth == 0)
{
Send.ServerMessage(_creature, Localization.Get("Beware, shaped bags aren't supported yet."));
}
else if (!this.AddBagPocket(item))
{
Log.Debug("Failed to add linked pocket for bag.");
// TODO: Handle somehow? Without linked pocket the bag
// won't open.
}
}