aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/config/interfaces
diff options
context:
space:
mode:
authornextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-05-10 18:51:51 +0100
committernextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-05-10 18:51:51 +0100
commitb5a1aea2239b0beace4d4407d2ab75294c6eab12 (patch)
tree8bff04f17385dd348cbc73fdffe5462772d1412b /src/main/java/cc/polyfrost/oneconfig/config/interfaces
parent20cf8146e88f3ca06399fdf163badef759f01d2c (diff)
downloadOneConfig-b5a1aea2239b0beace4d4407d2ab75294c6eab12.tar.gz
OneConfig-b5a1aea2239b0beace4d4407d2ab75294c6eab12.tar.bz2
OneConfig-b5a1aea2239b0beace4d4407d2ab75294c6eab12.zip
reduce dependency on minecraft
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/config/interfaces')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/config/interfaces/Config.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/interfaces/Config.java b/src/main/java/cc/polyfrost/oneconfig/config/interfaces/Config.java
index e8ffe42..756d3c3 100644
--- a/src/main/java/cc/polyfrost/oneconfig/config/interfaces/Config.java
+++ b/src/main/java/cc/polyfrost/oneconfig/config/interfaces/Config.java
@@ -10,8 +10,8 @@ import cc.polyfrost.oneconfig.config.profiles.Profiles;
import cc.polyfrost.oneconfig.gui.OneConfigGui;
import cc.polyfrost.oneconfig.gui.elements.config.*;
import cc.polyfrost.oneconfig.gui.pages.ModConfigPage;
+import cc.polyfrost.oneconfig.lwjgl.RenderManager;
import com.google.gson.*;
-import net.minecraft.client.Minecraft;
import java.io.*;
import java.lang.reflect.Field;
@@ -182,6 +182,6 @@ public class Config {
*/
public void openGui() {
if (mod == null) return;
- Minecraft.getMinecraft().displayGuiScreen(new OneConfigGui(new ModConfigPage(mod.defaultPage)));
+ RenderManager.displayGuiScreen(new OneConfigGui(new ModConfigPage(mod.defaultPage)));
}
}