aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/src/main/java')
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/config/ConfigManagerImpl.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/config/ConfigManagerImpl.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/config/ConfigManagerImpl.java
index 901934487..9b0801a0d 100644
--- a/runtime/src/main/java/me/shedaniel/rei/impl/client/config/ConfigManagerImpl.java
+++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/config/ConfigManagerImpl.java
@@ -411,8 +411,8 @@ public class ConfigManagerImpl implements ConfigManager {
}
ConfigAddonRegistryImpl addonRegistry = (ConfigAddonRegistryImpl) ConfigAddonRegistry.getInstance();
if (!addonRegistry.getAddons().isEmpty()) {
- builder.getOrCreateCategory(Component.translatable("config.roughlyenoughitems.basics")).getEntries().add(0, new EmptyEntry(4));
- builder.getOrCreateCategory(Component.translatable("config.roughlyenoughitems.basics")).getEntries().add(0, new ConfigAddonsEntry(220));
+ builder.getOrCreateCategory(new TranslatableComponent("config.roughlyenoughitems.basics")).getEntries().add(0, new EmptyEntry(4));
+ builder.getOrCreateCategory(new TranslatableComponent("config.roughlyenoughitems.basics")).getEntries().add(0, new ConfigAddonsEntry(220));
}
TextListEntry supportText = ConfigEntryBuilder.create().startTextDescription(
new TranslatableComponent("text.rei.support.me.desc",
@@ -431,10 +431,10 @@ public class ConfigManagerImpl implements ConfigManager {
)
.withStyle(ChatFormatting.GRAY)
).build();
- builder.getOrCreateCategory(Component.translatable("config.roughlyenoughitems.basics")).getEntries().add(0, new EmptyEntry(4));
- builder.getOrCreateCategory(Component.translatable("config.roughlyenoughitems.basics")).getEntries().add(0, supportText);
- builder.getOrCreateCategory(Component.translatable("config.roughlyenoughitems.basics")).getEntries().add(0, new TitleTextEntry(new TranslatableComponent("text.rei.support.me")));
- builder.getOrCreateCategory(Component.translatable("config.roughlyenoughitems.basics")).getEntries().add(0, new EmptyEntry(4));
+ builder.getOrCreateCategory(new TranslatableComponent("config.roughlyenoughitems.basics")).getEntries().add(0, new EmptyEntry(4));
+ builder.getOrCreateCategory(new TranslatableComponent("config.roughlyenoughitems.basics")).getEntries().add(0, supportText);
+ builder.getOrCreateCategory(new TranslatableComponent("config.roughlyenoughitems.basics")).getEntries().add(0, new TitleTextEntry(new TranslatableComponent("text.rei.support.me")));
+ builder.getOrCreateCategory(new TranslatableComponent("config.roughlyenoughitems.basics")).getEntries().add(0, new EmptyEntry(4));
return builder.setAfterInitConsumer(screen -> {
ScreenHooks.addButton(screen, new Button(screen.width - 104, 4, 100, 20, new TranslatableComponent("text.rei.credits"), button -> {
CreditsScreen creditsScreen = new CreditsScreen(screen);