When I click on the < arrow on a villager trade GUI quick enough, the game derps and forgets I've gone past the index of 0 and goes to -1 obviously causing a crash. This can be avoided by adding try catch statemnts around the render element for the trade GUI which set the index thats being accesed back to 0
Linked issues
Comments 1

Duplicate of MC-24506