This commit is contained in:
lukasabbe
2025-04-23 01:19:06 +02:00
parent 9a7be37561
commit 12f4848520
2 changed files with 5 additions and 6 deletions
@@ -27,6 +27,7 @@ public class HudRenderer {
if(client.options.hudHidden) return;
if(!BookshelfinspectorClient.bookShelfData.isCurrentBookDataToggled) return;
final BookData currentBookData = BookshelfinspectorClient.currentBookData;
final int screenWidth = client.getWindow().getScaledWidth();
final int screenHeight = client.getWindow().getScaledHeight();
@@ -77,8 +78,6 @@ public class HudRenderer {
if(writtenBookContentComponent != null){
drawScaledText(context, Text.translatable("book.byAuthor",writtenBookContentComponent.author()), x,y+(int)(20*scaleFactor), 0xFFFFFFFF,client.textRenderer);
}
}
private static void drawScaledText(DrawContext context, Text text, int centerX, int y, int color, TextRenderer textRenderer){
Matrix3x2fStack stack = context.getMatrices();