diff options
author | nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> | 2022-05-01 13:12:38 +0100 |
---|---|---|
committer | nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> | 2022-05-01 13:12:38 +0100 |
commit | be7a79478835aae4562d6f95a5b083228721b3ee (patch) | |
tree | a20e9594f21cfac21cd5db91c59232d511ff9d95 /src | |
parent | 08c0d21db67f27aef7b3c03ec4ad05a78b932670 (diff) | |
download | OneConfig-be7a79478835aae4562d6f95a5b083228721b3ee.tar.gz OneConfig-be7a79478835aae4562d6f95a5b083228721b3ee.tar.bz2 OneConfig-be7a79478835aae4562d6f95a5b083228721b3ee.zip |
fix lag spike
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/OneConfig.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/OneConfig.java b/src/main/java/io/polyfrost/oneconfig/OneConfig.java index 0715f4a..5e25ee0 100644 --- a/src/main/java/io/polyfrost/oneconfig/OneConfig.java +++ b/src/main/java/io/polyfrost/oneconfig/OneConfig.java @@ -6,6 +6,8 @@ import io.polyfrost.oneconfig.config.core.ConfigCore; import io.polyfrost.oneconfig.config.data.Mod; import io.polyfrost.oneconfig.config.data.ModType; import io.polyfrost.oneconfig.hud.HudCore; +import io.polyfrost.oneconfig.lwjgl.RenderManager; +import io.polyfrost.oneconfig.lwjgl.font.Fonts; import io.polyfrost.oneconfig.test.TestConfig; import net.minecraft.client.Minecraft; import net.minecraftforge.client.ClientCommandHandler; @@ -47,6 +49,11 @@ public class OneConfig { ClientCommandHandler.instance.registerCommand(new OneConfigCommand()); MinecraftForge.EVENT_BUS.register(this); MinecraftForge.EVENT_BUS.register(new HudCore()); + RenderManager.setupAndDraw((vg) -> { + RenderManager.drawRoundedRect(vg, -100, -100, 50, 50, -1, 12f); + RenderManager.drawString(vg, "OneConfig loading...", -100, -100, -1, 12f, Fonts.INTER_MEDIUM); + RenderManager.drawImage(vg, "/assets/oneconfig/textures/icon.png", -100, -100, 50, 50); + }); } @net.minecraftforge.fml.common.Mod.EventHandler |