diff options
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java index 699060edb..68ddc78a0 100644 --- a/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java +++ b/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java @@ -21,6 +21,7 @@ import net.minecraft.text.TranslatableTextComponent; import net.minecraft.util.Identifier; import java.awt.*; +import java.io.IOException; import java.util.Collections; import java.util.List; import java.util.Map; @@ -47,6 +48,11 @@ public class PreRecipeViewingScreen extends Screen { @Override public void onPressed() { RoughlyEnoughItemsCore.getConfigManager().getConfig().screenType = original ? RecipeScreenType.ORIGINAL : RecipeScreenType.VILLAGER; + try { + RoughlyEnoughItemsCore.getConfigManager().saveConfig(); + } catch (IOException e) { + e.printStackTrace(); + } ClientHelper.getInstance().openRecipeViewingScreen(map); } }); |
