info box component: vertically center images

This commit is contained in:
Kamiel
2018-02-01 20:36:57 -05:00
committed by Adam
parent f64886190c
commit 242d70beb9

View File

@@ -71,7 +71,7 @@ public class InfoBoxComponent implements RenderableEntity
{
graphics.drawImage(image,
position.x + (BOX_SIZE - image.getWidth()) / 2,
SEPARATOR, null);
(BOX_SIZE - image.getHeight()) / 2, null);
}
final TextComponent textComponent = new TextComponent();