RecentHotbar


Scrolls the hotbar with things you recently used

Utilities
4 years ago
0.18 - 1.1
457

b <FIXED> crash " initial value must be a number" line 69

4 years ago

reproducable crash when I click a radar in inventory:

(btw. great mod idea :)


The mod RecentHotbar (0.1.3) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event RecentHotbar::on_player_cursor_stack_changed (ID 29)
RecentHotbar/control.lua:69: 'for' initial value must be a number
stack traceback:
RecentHotbar/control.lua:69: in function <RecentHotbar/control.lua:1>


4 years ago

same error for me.

4 years ago

crashed if a item was selected that was not already in the hotbar and no slot free

think this will fix the problem:

i added at line 57,


    if selected == nil then
        selected = endIndex
    end

4 years ago
(updated 4 years ago)

Crap, I must've missed that. I'll see what I can do later today, but I'm busy right now. Sorry everyone!

4 years ago

I think i've fixed it, reply back if it still needs work. the fix was almost what @grain suggested.

4 years ago

once again i realise that others are smarter than me, and that grain's suggestion would've been much more efficient. But, hey, it works so nevermind.

New response