From 2c592090b9448203559e01326bc2c2d995b15d53 Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Sat, 14 May 2022 00:59:25 -0700 Subject: de-minecraftify a lot of things + use mixin instead of reflection (#11) * de-minecraftify * use mixin instead of reflection * lol --- .../java/cc/polyfrost/oneconfig/command/OneConfigCommand.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/cc/polyfrost/oneconfig/command/OneConfigCommand.java') diff --git a/src/main/java/cc/polyfrost/oneconfig/command/OneConfigCommand.java b/src/main/java/cc/polyfrost/oneconfig/command/OneConfigCommand.java index eccaf01..f21e569 100644 --- a/src/main/java/cc/polyfrost/oneconfig/command/OneConfigCommand.java +++ b/src/main/java/cc/polyfrost/oneconfig/command/OneConfigCommand.java @@ -1,10 +1,10 @@ package cc.polyfrost.oneconfig.command; -import cc.polyfrost.oneconfig.gui.OneConfigGui; import cc.polyfrost.oneconfig.gui.HudGui; -import cc.polyfrost.oneconfig.lwjgl.RenderManager; +import cc.polyfrost.oneconfig.gui.OneConfigGui; import cc.polyfrost.oneconfig.test.TestNanoVGGui; import cc.polyfrost.oneconfig.utils.TickDelay; +import gg.essential.universal.UScreen; import net.minecraft.command.CommandBase; import net.minecraft.command.ICommandSender; @@ -33,14 +33,14 @@ public class OneConfigCommand extends CommandBase { @Override public void processCommand(ICommandSender sender, String[] args) { - if (args.length == 0) new TickDelay(() -> RenderManager.displayGuiScreen(OneConfigGui.create()), 1); + if (args.length == 0) new TickDelay(() -> UScreen.displayScreen(OneConfigGui.create()), 1); else { switch (args[0]) { case "hud": - new TickDelay(() -> RenderManager.displayGuiScreen(new HudGui()), 1); + new TickDelay(() -> UScreen.displayScreen(new HudGui()), 1); break; case "lwjgl": - new TickDelay(() -> RenderManager.displayGuiScreen(new TestNanoVGGui()), 1); + new TickDelay(() -> UScreen.displayScreen(new TestNanoVGGui()), 1); break; } } -- cgit