diff options
| author | shedaniel <daniel@shedaniel.me> | 2019-11-15 20:09:15 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2019-11-15 20:09:15 +0800 |
| commit | b7246fa0016888fd52c45f9c77df46f9d791e326 (patch) | |
| tree | ca455d73ea2213ef6e5a62855834119715a13fe2 /src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java | |
| parent | 5c34cd8dae4879e04fd825f423e0ddbf8480668e (diff) | |
| download | RoughlyEnoughItems-b7246fa0016888fd52c45f9c77df46f9d791e326.tar.gz RoughlyEnoughItems-b7246fa0016888fd52c45f9c77df46f9d791e326.tar.bz2 RoughlyEnoughItems-b7246fa0016888fd52c45f9c77df46f9d791e326.zip | |
Using more of the API instead of the Impl
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, 3 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java index 435920486..fda8ce246 100644 --- a/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java +++ b/src/main/java/me/shedaniel/rei/gui/PreRecipeViewingScreen.java @@ -7,8 +7,8 @@ package me.shedaniel.rei.gui; import com.google.common.collect.Lists; import me.shedaniel.math.api.Rectangle; -import me.shedaniel.rei.RoughlyEnoughItemsCore; import me.shedaniel.rei.api.ClientHelper; +import me.shedaniel.rei.api.ConfigManager; import me.shedaniel.rei.api.RecipeCategory; import me.shedaniel.rei.api.RecipeDisplay; import me.shedaniel.rei.gui.config.RecipeScreenType; @@ -54,9 +54,9 @@ public class PreRecipeViewingScreen extends Screen { this.widgets.add(new ButtonWidget(width / 2 - 100, height - 40, 200, 20, I18n.translate("text.rei.select")) { @Override public void onPressed() { - RoughlyEnoughItemsCore.getConfigManager().getConfig().setRecipeScreenType(original ? RecipeScreenType.ORIGINAL : RecipeScreenType.VILLAGER); + ConfigManager.getInstance().getConfig().setRecipeScreenType(original ? RecipeScreenType.ORIGINAL : RecipeScreenType.VILLAGER); try { - RoughlyEnoughItemsCore.getConfigManager().saveConfig(); + ConfigManager.getInstance().saveConfig(); } catch (IOException | FiberException e) { e.printStackTrace(); } |
