univrsal / JustEnoughButtons

Adds utility buttons to the inventory screen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when quickly pressing buttons

opened this issue · comments

When quickly pressing (pretty much spamming) some buttons (only tested with gamemode-weather and delete-weather), game crashes.

_anti_dont_spam_buttons_answer

commented

Hmm, I tested this with the same forge version you had and with my definition of spamming I can't reproduce it.

int maximumIndex = Math.min(maxItems + scrollOffset, mod_names.size());

This is the line it crashes on with a NPE, which is strange since this is the Mod button that has nothing to do with the buttons you tested. I'll do some further testing at some point but I won't have time until Sunday at least.