Skip to content

Commit 67d5d53

Browse files
authored
fix: deprecated CommandManager notation
1 parent 4028343 commit 67d5d53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/cc/polyfrost/example/ExampleMod.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ public class ExampleMod {
1616
@net.minecraftforge.fml.common.Mod.EventHandler
1717
public void onFMLInitialization(net.minecraftforge.fml.common.event.FMLInitializationEvent event) {
1818
config = new TestConfig();
19-
CommandManager.INSTANCE.registerCommand(ExampleCommand.class);
19+
CommandManager.INSTANCE.registerCommand(new ExampleCommand());
2020
}
2121
}

0 commit comments

Comments
 (0)