Fix https://github.com/owmii/Powah/issues/134 by clamping currRecipe to [0, max(0, size - 1)] and only rendering if 0 <= currRecipe < size.
Also fixes the arrows in the wrong position (see pictures).
BeforeAfter
Note: I force the arrows to render for testing, usually only one of them renders because there's only two recipes.
Fix https://github.com/owmii/Powah/issues/134 by clamping
currRecipe
to[0, max(0, size - 1)]
and only rendering if0 <= currRecipe < size
. Also fixes the arrows in the wrong position (see pictures).Before After Note: I force the arrows to render for testing, usually only one of them renders because there's only two recipes.