Skip to content

Commit bf490c3

Browse files
authored
Fix brewing stand titles for 1.8 clients on 1.9+ servers (#672)
1 parent 7ca7078 commit bf490c3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • common/src/main/java/com/viaversion/viarewind/protocol/v1_9to1_8/storage

common/src/main/java/com/viaversion/viarewind/protocol/v1_9to1_8/storage/WindowTracker.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ public static void updateBrewingStand(UserConnection user, Item blazePowder, sho
5252
openWindow.write(Types.UNSIGNED_BYTE, windowId);
5353
openWindow.write(Types.STRING, "minecraft:brewing_stand");
5454

55-
TextComponent title = new StringComponent().
56-
append(new TranslationComponent("container.brewing")).
57-
append(new StringComponent(": " + TextFormatting.DARK_GRAY)).
58-
append(new StringComponent(amount + " " + TextFormatting.DARK_RED)).
59-
append(new TranslationComponent("item.blazePowder.name", TextFormatting.DARK_RED));
55+
TextComponent title = new StringComponent()
56+
.append(new TranslationComponent("container.brewing"))
57+
.append(new StringComponent(": ").formatted(TextFormatting.DARK_GRAY))
58+
.append(new StringComponent(amount + " ").formatted(TextFormatting.DARK_RED))
59+
.append(new TranslationComponent("item.blazePowder.name").formatted(TextFormatting.DARK_RED));
6060

6161
openWindow.write(Types.COMPONENT, TextComponentSerializer.V1_8.serializeJson(title));
6262
openWindow.write(Types.UNSIGNED_BYTE, (short) 420);

0 commit comments

Comments
 (0)