mirror of
https://github.com/lukasabbe/bookshelf-inspector.git
synced 2026-04-30 10:40:53 +00:00
the 'by' now uses the book translation from vannila game
This commit is contained in:
@@ -44,7 +44,7 @@ public class HudRenderer {
|
||||
var writtenBookContentComponent = itemStack.getComponents().get(DataComponentTypes.WRITTEN_BOOK_CONTENT);
|
||||
|
||||
if(writtenBookContentComponent != null){
|
||||
context.drawCenteredTextWithShadow(client.textRenderer, Text.translatable("key.bookshelfinspector.author_text",writtenBookContentComponent.author()), x,y+20, 0xFFFFFFFF);
|
||||
context.drawCenteredTextWithShadow(client.textRenderer, Text.translatable("book.byAuthor",writtenBookContentComponent.author()), x,y+20, 0xFFFFFFFF);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"key.bookshelfinspector.author_text" : "by %d"
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"key.bookshelfinspector.author_text" : "av %d"
|
||||
}
|
||||
@@ -25,7 +25,6 @@
|
||||
"minecraft": ">=${minecraft_version}",
|
||||
"fabric-api-base": "*",
|
||||
"fabric-networking-api-v1": "*",
|
||||
"fabric-lifecycle-events-v1": "*",
|
||||
"fabric-resource-loader-v0": "*"
|
||||
"fabric-lifecycle-events-v1": "*"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user