From 721ea24a226c2dca5cfef4b3f638d251547df0b8 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 4 Aug 2019 22:11:07 +0800 Subject: yes thank you --- src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java') diff --git a/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java b/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java index 3453b0480..f14dd0714 100644 --- a/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java +++ b/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java @@ -26,9 +26,9 @@ import java.util.Locale; import java.util.Optional; public class ClothScreenRegistry { - + public static final String RESET = "text.cloth-config.reset_value"; - + @SuppressWarnings("deprecation") public static Screen getConfigScreen(Screen parent) { final ConfigManager configManager = RoughlyEnoughItemsCore.getConfigManager(); @@ -105,7 +105,7 @@ public class ClothScreenRegistry { .setSaveConsumer(bool -> configManager.getConfig().villagerScreenPermanentScrollBar = bool) .setTooltip(getConfigTooltip("villager_screen_permanent_scroll_bar")) .build()); - + ConfigCategory action = builder.getOrCreateCategory("text.rei.config.action"); action.addEntry(eb.startEnumSelector("text.rei.config.item_cheating_mode", ItemCheatingMode.class, configManager.getConfig().itemCheatingMode) .setDefaultValue(ItemCheatingMode.REI_LIKE) @@ -150,11 +150,11 @@ public class ClothScreenRegistry { ((ScreenHooks) screen).cloth_getChildren().add(0, w); }).build(); } - + private static Optional getConfigTooltip(String s, Object... o) { if (I18n.hasTranslation("tooltip.rei.config." + s)) return Optional.ofNullable(I18n.translate("tooltip.rei.config." + s, o).split("\n")); return Optional.empty(); } - + } -- cgit