@EventHandler(priority = EventPriority.MONITOR)
    public void onInventoryInteract(InventoryClickEvent e) {
        if (e.getInventory().getType() != InventoryType.CHEST) {
            return;
        }
        if (!(e.getRawSlot() == e.getSlot())) {
            return;
        }
        Block block = ((Chest) e.getInventory().getHolder()).getBlock();
        ItemStack[] contents = e.getView().getTopInventory().getContents();
        for (CPU cpu : CPUDatabase.CPUDatabaseMap) {
            if (!cpu.isBlockPartOfCPU(block)) {
                continue;
            }
            if (Arrays.deepEquals(contents, cpu.getCore().getInventory().getContents())) {
                cpu.getType().disable();
                CPUDatabase.removeCPU(cpu);
            }
        }
    }