public static void RemoveItem(this MapInstance instance, Item item) { try { instance.Items.Remove(item); Global.Global.VisibleService.Send(item, new SpDropRemove(item)); item.Release(); } catch { //Already removed } }
public static void RemoveItem(this MapInstance instance, Item item) { try { instance.Items.Remove(item); Global.VisibleService.Send(item, new SpRemoveItem(item)); item.Release(); } // ReSharper disable EmptyGeneralCatchClause catch // ReSharper restore EmptyGeneralCatchClause { //Already removed } }