aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java7
1 files changed, 4 insertions, 3 deletions
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<RecipeCategory, List<RecipeDisplay>> map;
public PreRecipeViewingScreen(Map<RecipeCategory, List<RecipeDisplay>> 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);