Skip to content

Commit

Permalink
misc: update to new command api
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Oct 24, 2022
1 parent 546e229 commit bc5e559
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cc/polyfrost/polyblur/PolyBlur.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
13 changes: 0 additions & 13 deletions src/main/java/cc/polyfrost/polyblur/commands/PolyBlurCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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);
}
}

}

0 comments on commit bc5e559

Please sign in to comment.