diff --git a/build.gradle.kts b/build.gradle.kts index fe461fe..353e1a8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -45,6 +45,12 @@ loom { mixinConfig("mixins.${mod_id}.json") } } + runConfigs.named("client") { + if (project.platform.isLegacyForge) { + vmArgs.remove("-XstartOnFirstThread") + } + } + mixin.defaultRefmapName.set("mixins.${mod_id}.refmap.json") } diff --git a/gradle.properties b/gradle.properties index cab7b77..c9a917b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ mod_name = PolyBlur mod_id = polyblur -mod_version = 1.0.0-alpha4 +mod_version = 1.0.0-beta1 essential.defaults.loom=0 diff --git a/src/main/java/cc/polyfrost/polyblur/PolyBlur.java b/src/main/java/cc/polyfrost/polyblur/PolyBlur.java index 1a4097e..ac1e13f 100644 --- a/src/main/java/cc/polyfrost/polyblur/PolyBlur.java +++ b/src/main/java/cc/polyfrost/polyblur/PolyBlur.java @@ -19,7 +19,7 @@ public class PolyBlur { @Mod.EventHandler public void init(FMLInitializationEvent event) { - CommandManager.INSTANCE.registerCommand(PolyBlurCommand.class); + CommandManager.INSTANCE.registerCommand(new PolyBlurCommand()); EventManager.INSTANCE.register(new PhosphorBlur()); } } diff --git a/src/main/java/cc/polyfrost/polyblur/commands/PolyBlurCommand.java b/src/main/java/cc/polyfrost/polyblur/commands/PolyBlurCommand.java index d7f312c..a563cc7 100644 --- a/src/main/java/cc/polyfrost/polyblur/commands/PolyBlurCommand.java +++ b/src/main/java/cc/polyfrost/polyblur/commands/PolyBlurCommand.java @@ -2,10 +2,7 @@ import cc.polyfrost.oneconfig.utils.commands.annotations.Command; import cc.polyfrost.oneconfig.utils.commands.annotations.Main; -import cc.polyfrost.oneconfig.utils.commands.annotations.SubCommand; -import cc.polyfrost.polyblur.blurs.monkey.MonkeyBlur; import cc.polyfrost.polyblur.PolyBlur; -import net.minecraft.client.Minecraft; @Command("polyblur") public class PolyBlurCommand { @@ -14,14 +11,4 @@ public class PolyBlurCommand { public static void handle() { PolyBlur.instance.config.openGui(); } - - @SubCommand("output") - public static final class OutputCommand { - @Main - public static void handle() { - //MonkeyBlur.instance.outputFb(MonkeyBlur.instance.frameBuffer.width, MonkeyBlur.instance.frameBuffer.height, MonkeyBlur.instance.frameBuffer.framebufferTexture); - MonkeyBlur.instance.outputFb(Minecraft.getMinecraft().getFramebuffer().framebufferTextureWidth, Minecraft.getMinecraft().getFramebuffer().framebufferTextureHeight, Minecraft.getMinecraft().getFramebuffer().framebufferTexture); - } - } - }