Skip to content

Commit 34be152

Browse files
committed
update to new command api
1 parent 2db4091 commit 34be152

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ loom {
3939
arg("--tweakClass", "cc.polyfrost.oneconfigwrapper.OneConfigWrapper")
4040
property("mixin.debug.export", "true")
4141
}
42+
runConfigs.named("client") {
43+
vmArgs.remove("-XstartOnFirstThread")
44+
}
4245
}
4346
if (project.platform.isForge) {
4447
forge {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mod_name = PolyTime
22
mod_id = polytime
3-
mod_version = 1.0.0-alpha4
3+
mod_version = 1.0.0-beta1
44

55
essential.defaults.loom=0
66

src/main/java/cc/polyfrost/polytime/PolyTime.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class PolyTime {
3131
@net.minecraftforge.fml.common.Mod.EventHandler
3232
public void onFMLInitialization(net.minecraftforge.fml.common.event.FMLInitializationEvent event) {
3333
config = new TimeConfig();
34-
CommandManager.INSTANCE.registerCommand(TimeCommand.class);
34+
CommandManager.INSTANCE.registerCommand(new TimeCommand());
3535
calculateSunriseSunset();
3636
calculateMoonPhases();
3737
}

src/main/java/cc/polyfrost/polytime/command/TimeCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
import cc.polyfrost.oneconfig.utils.commands.annotations.Command;
55
import cc.polyfrost.oneconfig.utils.commands.annotations.Main;
66

7-
@Command(value = PolyTime.MODID, description = "Access the " + PolyTime.NAME + " GUI.")
7+
@Command(value = PolyTime.MODID, description = "Access the " + PolyTime.NAME + " GUI.", aliases = "timechanger")
88
public class TimeCommand {
99

1010
@Main
11-
private static void main() {
11+
private void main() {
1212
PolyTime.INSTANCE.config.openGui();
1313
}
1414
}

0 commit comments

Comments
 (0)