Fix tooltip modicon OutOfBounds

- Swap originalWidth with width

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-03-18 18:56:09 +01:00
parent 81012a1929
commit ec4bb17daa

View File

@@ -225,7 +225,7 @@ public class TooltipComponent implements RenderableEntity
for (int y2 = 0; y2 < modIcon.getHeight(); y2++)
{
for (int x2 = 0; x2 < modIcon.getOriginalWidth(); x2++)
for (int x2 = 0; x2 < modIcon.getWidth(); x2++)
{
int index = modIcon.getPixels()[sourceOffset++] & 0xff;