diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-05-09 23:46:15 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-05-09 23:46:15 +0800 |
| commit | 7de38369a5dbf1abe106c7f825ed94fde6dab05a (patch) | |
| tree | d9affb9378ad72f111b80708d2b14e93dc76da9c /src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java | |
| parent | c1b0219e8d5458ddf1eccc194d34893f698b7d88 (diff) | |
| download | RoughlyEnoughItems-7de38369a5dbf1abe106c7f825ed94fde6dab05a.tar.gz RoughlyEnoughItems-7de38369a5dbf1abe106c7f825ed94fde6dab05a.tar.bz2 RoughlyEnoughItems-7de38369a5dbf1abe106c7f825ed94fde6dab05a.zip | |
selection screen
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java b/src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java index 5a05f0e74..832375918 100644 --- a/src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java +++ b/src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java @@ -9,6 +9,7 @@ import me.shedaniel.rei.api.ClientHelper; import me.shedaniel.rei.api.RecipeCategory; import me.shedaniel.rei.api.RecipeDisplay; import me.shedaniel.rei.api.RecipeHelper; +import me.shedaniel.rei.gui.PreRecipeViewingScreen; import me.shedaniel.rei.gui.RecipeViewingScreen; import me.shedaniel.rei.gui.VillagerRecipeViewingScreen; import net.fabricmc.fabric.api.client.keybinding.FabricKeyBinding; @@ -189,9 +190,12 @@ public class ClientHelperImpl implements ClientHelper { return map.keySet().size() > 0; } + @Override public void openRecipeViewingScreen(Map<RecipeCategory, List<RecipeDisplay>> map) { if (RoughlyEnoughItemsCore.getConfigManager().getConfig().screenType == RecipeScreenType.VILLAGER) MinecraftClient.getInstance().openScreen(new VillagerRecipeViewingScreen(map)); + else if (RoughlyEnoughItemsCore.getConfigManager().getConfig().screenType == RecipeScreenType.UNSET) + MinecraftClient.getInstance().openScreen(new PreRecipeViewingScreen(map)); else MinecraftClient.getInstance().openScreen(new RecipeViewingScreen(map)); } |
