From 4ea8402014b3878bc94ae977cdace1ab7c497e5f Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 22 May 2019 21:30:38 +0800 Subject: 2.9.1 --- src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java') diff --git a/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java index bfceee51c..8aeeb7c59 100644 --- a/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java +++ b/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java @@ -15,13 +15,14 @@ import me.shedaniel.rei.client.ScreenHelper; import me.shedaniel.rei.gui.widget.ButtonWidget; import me.shedaniel.rei.gui.widget.HighlightableWidget; import me.shedaniel.rei.gui.widget.Widget; +import net.minecraft.ChatFormat; import net.minecraft.client.MinecraftClient; import net.minecraft.client.gui.Element; import net.minecraft.client.gui.screen.Screen; import net.minecraft.client.render.GuiLighting; import net.minecraft.client.resource.language.I18n; import net.minecraft.client.sound.PositionedSoundInstance; -import net.minecraft.network.chat.TextComponent; +import net.minecraft.network.chat.TranslatableComponent; import net.minecraft.sound.SoundEvents; import net.minecraft.util.Identifier; @@ -39,7 +40,7 @@ public class PreRecipeViewingScreen extends Screen { private Map> map; public PreRecipeViewingScreen(Map> map) { - super(new TextComponent("text.rei.recipe_screen_type.selection")); + super(new TranslatableComponent("text.rei.recipe_screen_type.selection")); this.widgets = Lists.newArrayList(); this.original = true; this.map = map; @@ -72,7 +73,7 @@ public class PreRecipeViewingScreen extends Screen { this.drawCenteredString(this.font, this.title.getFormattedText(), this.width / 2, 20, 16777215); int i = 30; for(String s : this.font.wrapStringToWidthAsList(I18n.translate("text.rei.recipe_screen_type.selection.sub"), width - 30)) { - this.drawCenteredString(this.font, "ยง7" + s, width / 2, i, -1); + this.drawCenteredString(this.font, ChatFormat.GRAY.toString() + s, width / 2, i, -1); i += 10; } super.render(int_1, int_2, float_1); -- cgit