diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-08-08 18:25:12 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-08-08 18:25:12 +0800 |
| commit | 2e4f4b41332474e1610af8e4e83b24b44eea83bc (patch) | |
| tree | 22b4ae194b84f5d5e6e463b7d3ca7bde22f278c0 /RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java | |
| parent | 8a2df51193fd3db145f3b1ace974e9e0a0bc09a5 (diff) | |
| download | RoughlyEnoughItems-2e4f4b41332474e1610af8e4e83b24b44eea83bc.tar.gz RoughlyEnoughItems-2e4f4b41332474e1610af8e4e83b24b44eea83bc.tar.bz2 RoughlyEnoughItems-2e4f4b41332474e1610af8e4e83b24b44eea83bc.zip | |
Fix duplicate mod id with hwyla
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java')
| -rw-r--r-- | RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java index 7762b45d1..dba72bccb 100644 --- a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java +++ b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java @@ -34,13 +34,13 @@ import me.shedaniel.rei.gui.config.RecipeScreenType; import me.shedaniel.rei.gui.widget.Widget; import me.shedaniel.rei.gui.widget.WidgetWithBounds; import me.shedaniel.rei.impl.ScreenHelper; -import net.minecraft.class_5481; import net.minecraft.client.MinecraftClient; import net.minecraft.client.gui.Element; import net.minecraft.client.gui.screen.Screen; import net.minecraft.client.gui.screen.ingame.ContainerScreen; import net.minecraft.client.util.NarratorManager; import net.minecraft.client.util.math.MatrixStack; +import net.minecraft.text.OrderedText; import net.minecraft.text.TranslatableText; import net.minecraft.util.Formatting; import net.minecraft.util.Identifier; @@ -127,8 +127,8 @@ public class PreRecipeViewingScreen extends Screen { drawCenteredText(matrices, this.textRenderer, this.title, this.width / 2, 20, 16777215); if (showTips) { int i = 30; - for (class_5481 s : this.textRenderer.wrapStringToWidthAsList(new TranslatableText("text.rei.recipe_screen_type.selection.sub").formatted(Formatting.GRAY), width - 30)) { - textRenderer.drawWithShadow(matrices, s, width / 2 - textRenderer.method_30880(s) / 2, i, -1); + for (OrderedText s : this.textRenderer.wrapStringToWidthAsList(new TranslatableText("text.rei.recipe_screen_type.selection.sub").formatted(Formatting.GRAY), width - 30)) { + textRenderer.drawWithShadow(matrices, s, width / 2 - textRenderer.getWidth(s) / 2, i, -1); i += 10; } } |
