[2.x] player.get_quick_bar_slot(x) does not return quality

billbo99
Fast Inserter
Fast Inserter
Posts: 137
Joined: Fri Nov 02, 2018 9:19 am
Contact:

[2.x] player.get_quick_bar_slot(x) does not return quality

Post by billbo99 »

When checking the quick bar filters I found that the current API does not return the item's quality in the filter slot.

Code: Select all

    for row = 1, quick_bar_rows do
        for _ = 1, 10 do
            local slot = player.get_quick_bar_slot(index)
            if slot then
                items[slot.name] = { target = slot.stack_size }
            end
            index = index + 1
        end
    end
get_quick_bar_slot.png
get_quick_bar_slot.png (40.51 KiB) Viewed 284 times
quickbar.png
quickbar.png (34 KiB) Viewed 284 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14890
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.x] player.get_quick_bar_slot(x) does not return quality

Post by Rseding91 »

Changed for 2.0.21.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”