From b41d3afffa61291ec98f775626364c1cc75ef2ca Mon Sep 17 00:00:00 2001 From: shedaniel Date: Tue, 16 Apr 2024 01:40:51 +0900 Subject: Fix build errors --- .../java/me/shedaniel/rei/impl/client/gui/config/REIConfigScreen.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/src/main/java') diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/REIConfigScreen.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/REIConfigScreen.java index 7073df818..2dcf5323f 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/REIConfigScreen.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/REIConfigScreen.java @@ -58,7 +58,7 @@ import net.minecraft.client.gui.GuiComponent; import net.minecraft.client.gui.components.events.GuiEventListener; import net.minecraft.client.gui.screens.Screen; import net.minecraft.client.resources.language.I18n; -import net.minecraft.network.chat.Component; +import net.minecraft.network.chat.TranslatableComponent; import org.apache.commons.lang3.mutable.Mutable; import org.apache.commons.lang3.mutable.MutableObject; import org.jetbrains.annotations.Nullable; @@ -91,7 +91,7 @@ public class REIConfigScreen extends Screen implements ConfigAccess { } public REIConfigScreen(Screen parent, List categories) { - super(Component.translatable("config.roughlyenoughitems.title")); + super(new TranslatableComponent("config.roughlyenoughitems.title")); this.parent = parent; this.categories = CollectionUtils.map(categories, OptionCategory::copy); this.cleanRequiresLevel(); -- cgit