diff options
| author | shedaniel <daniel@shedaniel.me> | 2023-09-02 00:39:22 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2024-04-16 00:38:18 +0900 |
| commit | 15d945b7dfc1667965fb07823cb37b5a5062bb75 (patch) | |
| tree | 1400e4bf262b51c4dcdbf8973df1f031426e1afa /runtime/src/main/java/me/shedaniel | |
| parent | c5705ad9e7195ae679bcebee5d0e876eec7c216d (diff) | |
| download | RoughlyEnoughItems-15d945b7dfc1667965fb07823cb37b5a5062bb75.tar.gz RoughlyEnoughItems-15d945b7dfc1667965fb07823cb37b5a5062bb75.tar.bz2 RoughlyEnoughItems-15d945b7dfc1667965fb07823cb37b5a5062bb75.zip | |
Add flags and reset
Diffstat (limited to 'runtime/src/main/java/me/shedaniel')
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 16dcfcd3d..cb162fba4 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 @@ -358,7 +358,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 ); } |
