public void CloseWindow(bool clientInitiated = false) { if (!clientInitiated) { QueuePacket(new CloseWindowPacket(CurrentWindow.ID)); } CurrentWindow.CopyToInventory(Inventory); CurrentWindow = InventoryWindow; }
public void CloseWindow(bool clientInitiated = false) { if (!clientInitiated) { QueuePacket(new CloseWindowPacket(CurrentWindow.ID)); } CurrentWindow.CopyToInventory(Inventory); CurrentWindow = InventoryWindow; }