Merge pull request #1003 from deathbeam/fix-tooltip-out-of-bounds

Fix tooltip modicon OutOfBounds
This commit is contained in:
Adam
2018-03-18 14:44:26 -04:00
committed by GitHub

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;