Skip to content

Commit 502f368

Browse files
committed
Include casing id in the tooltip
1 parent ac97d87 commit 502f368

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/client/java/aztech/modern_industrialization/items/client/ClientStructureMemberBlockTooltip.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public int height(Font font) {
305305

306306
@Override
307307
public int width(Font font) {
308-
return font.width(label) + 20;
308+
return font.width(label) + 20 + font.width(Component.literal(casing.key.toString()));
309309
}
310310

311311
@Override
@@ -316,6 +316,9 @@ public void renderImage(Font font, int x, int y, GuiGraphics graphics) {
316316
@Override
317317
public void renderText(Font font, int x, int y, Matrix4f matrix, MultiBufferSource.BufferSource buffer) {
318318
font.drawInBatch(label, x, y + 5, -1, true, matrix, buffer, Font.DisplayMode.NORMAL, 0, 0xF000F0);
319+
320+
font.drawInBatch(Component.literal(casing.key.toString()), x + font.width(label) + 20, y + 5, -1, true, matrix, buffer,
321+
Font.DisplayMode.NORMAL, 0, 0xF000F0);
319322
}
320323
}
321324
}

0 commit comments

Comments
 (0)