diff options
| author | shedaniel <daniel@shedaniel.me> | 2023-09-02 00:39:22 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2024-04-15 23:33:19 +0900 |
| commit | bb3801dceddb0dd8622f5768f7032cf9e1eabc75 (patch) | |
| tree | 43a98346659f29fc6c0ef8f2917d1804db01e12a /runtime/src/main/java | |
| parent | 12b5fe10262e327c5b7b6ab90c4d7b8cd6b34b3a (diff) | |
| download | RoughlyEnoughItems-bb3801dceddb0dd8622f5768f7032cf9e1eabc75.tar.gz RoughlyEnoughItems-bb3801dceddb0dd8622f5768f7032cf9e1eabc75.tar.bz2 RoughlyEnoughItems-bb3801dceddb0dd8622f5768f7032cf9e1eabc75.zip | |
Add flags and reset
Diffstat (limited to 'runtime/src/main/java')
2 files changed, 6 insertions, 2 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 3488ef69e..5141dfe53 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 @@ -356,7 +356,7 @@ public class ConfigManagerImpl implements ConfigManager { @SuppressWarnings("deprecation") @Override public Screen getConfigScreen(Screen parent) { - if (true) return new REIConfigScreen(parent); + if (Screen.hasShiftDown()) return new REIConfigScreen(parent); class EmptyEntry extends AbstractConfigListEntry<Object> { private final int height; diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/options/AllREIConfigCategories.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/options/AllREIConfigCategories.java index dcba86395..1e9d03e9c 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/options/AllREIConfigCategories.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/options/AllREIConfigCategories.java @@ -48,6 +48,8 @@ public interface AllREIConfigCategories { OptionCategory FILTERING = make("filtering"); OptionCategory LIST = make("list"); OptionCategory DEBUG = make("debug"); + OptionCategory FLAGS = make("flags"); + OptionCategory RESET = make("reset"); List<OptionCategory> CATEGORIES = ImmutableList.of( APPEARANCE, KEYBINDS, @@ -59,6 +61,8 @@ public interface AllREIConfigCategories { SEARCH, FILTERING, LIST, - DEBUG + DEBUG, + FLAGS, + RESET ); } |
