@Override
    public void HUDAreaRightClicked(HUDArea ha) {
        HUDArea hudArea = null;
        int playerInventorySlot = 0;

        int selectedStart = registry.getInvSlotFrom();

        for (int i = 0; i < hudAreas.size(); i++) {

            playerInventorySlot = i + registry.getPlayerInventorySize(registry.getPlayerManager().getCurrentPlayer()) - SLOTS;

            hudArea = hudAreas.get(i);
            if (hudArea == ha) {
                int maxQty = registry.getPlaverInventorySlotQty(playerInventorySlot);
                if (selectedStart == playerInventorySlot && registry.getSplitCount() > 0) {
                    if (maxQty > registry.getSplitCount()) {
                        if (shiftKeyPressed) {
                            registry.setSplitCount(registry.getSplitCount() + 10);
                        } else {
                            registry.setSplitCount(registry.getSplitCount() + 1);
                        }
                        if (registry.getSplitCount() > maxQty) {
                            registry.setSplitCount(maxQty);
                        }
                        hudManager.setCursorImageAndText(hudArea.getFGImage(), Integer.toString(registry.getSplitCount()));
                    }
                } else {
                    selectedStart = playerInventorySlot;
                    if (shiftKeyPressed) {
                        registry.setSplitCount(10);
                    } else {
                        registry.setSplitCount(1);
                    }
                    if (registry.getSplitCount() > maxQty) {
                        registry.setSplitCount(maxQty);
                    }
                    hudManager.setCursorImageAndText(hudArea.getFGImage(), Integer.toString(registry.getSplitCount()));
                }
            }
        }

        registry.setInvSlotFrom("QuickBar", selectedStart);
    }