public override void OnGuiClosed()
        {
            inventory.SlotModified -= OnInventorySlotModified;

            inventory.Close(capi.World.Player);
            capi.World.Player.InventoryManager.CloseInventory(inventory);

            SingleComposer.GetSlotGrid("inputSlot").OnGuiClosed(capi);
            SingleComposer.GetSlotGrid("outputslot").OnGuiClosed(capi);

            capi.Network.SendBlockEntityPacket(blockEntityPos.X, blockEntityPos.Y, blockEntityPos.Z, (int)EnumBlockContainerPacketId.CloseInventory);
        }