From b7246fa0016888fd52c45f9c77df46f9d791e326 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Fri, 15 Nov 2019 20:09:15 +0800 Subject: Using more of the API instead of the Impl --- src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java') diff --git a/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java b/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java index b76ae996f..e169a16fa 100644 --- a/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java +++ b/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java @@ -8,7 +8,6 @@ package me.shedaniel.rei.utils; import me.shedaniel.cloth.hooks.ScreenHooks; import me.shedaniel.clothconfig2.api.ConfigEntryBuilder; import me.shedaniel.fiber2cloth.api.Fiber2Cloth; -import me.shedaniel.rei.RoughlyEnoughItemsCore; import me.shedaniel.rei.api.ConfigManager; import me.shedaniel.rei.gui.config.ItemCheatingMode; import me.shedaniel.rei.gui.config.ItemListOrderingConfig; @@ -31,7 +30,7 @@ import static me.shedaniel.fiber2cloth.impl.Fiber2ClothImpl.splitLine; public class ClothScreenRegistry { public static Screen getConfigScreen(Screen parent) { - final ConfigManager configManager = RoughlyEnoughItemsCore.getConfigManager(); + final ConfigManager configManager = ConfigManager.getInstance(); ConfigEntryBuilder configEntryBuilder = ConfigEntryBuilder.create(); return Fiber2Cloth.create(parent, "roughlyenoughitems", configManager.getConfig().getConfigNode(), "config.roughlyenoughitems.title").setSaveRunnable(() -> { try { -- cgit