Skip to content

Commit 63e9d92

Browse files
committed
Fix drawing DrawableWrappedText with an offset
1 parent a7d7a18 commit 63e9d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Common/src/main/java/mezz/jei/common/gui/elements/DrawableWrappedText.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void draw(GuiGraphics guiGraphics, int xOffset, int yOffset) {
4646
int yPos = 0;
4747
for (FormattedText descriptionLine : descriptionLines) {
4848
FormattedCharSequence charSequence = language.getVisualOrder(descriptionLine);
49-
guiGraphics.drawString(font, charSequence, 0, yPos, 0xFF000000, false);
49+
guiGraphics.drawString(font, charSequence, xOffset, yPos + yOffset, 0xFF000000, false);
5050
yPos += lineHeight;
5151
}
5252
}

0 commit comments

Comments
 (0)