Skip to content

Commit 2f3a34a

Browse files
committed
yes
1 parent 377db7f commit 2f3a34a

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,15 @@
99
*/
1010
@net.minecraftforge.fml.common.Mod(modid = ExampleMod.MODID, name = ExampleMod.NAME, version = ExampleMod.VERSION)
1111
public class ExampleMod {
12-
@net.minecraftforge.fml.common.Mod.Instance("@ID@")
12+
@net.minecraftforge.fml.common.Mod.Instance(MODID)
1313
public static ExampleMod INSTANCE;
1414
public static final String MODID = "@ID@";
1515
public static final String NAME = "@NAME@";
1616
public static final String VERSION = "@VER@";
1717
public TestConfig config;
18-
19-
@net.minecraftforge.fml.common.Mod.EventHandler
20-
public void onPreFMLInit(net.minecraftforge.fml.common.event.FMLPreInitializationEvent event) {
21-
config = new TestConfig();
22-
}
23-
2418
@net.minecraftforge.fml.common.Mod.EventHandler
2519
public void onFMLInitialization(net.minecraftforge.fml.common.event.FMLInitializationEvent event) {
20+
config = new TestConfig();
2621
CommandManager.INSTANCE.registerCommand(new ExampleCommand());
2722
}
2823
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package cc.polyfrost.example.hud;
22

33
import cc.polyfrost.oneconfig.hud.TextHud;
4+
import net.minecraft.client.Minecraft;
45

56
public class TestHud extends TextHud {
67
public TestHud(boolean enabled, int x, int y) {
@@ -9,6 +10,6 @@ public TestHud(boolean enabled, int x, int y) {
910

1011
@Override
1112
public String getText() {
12-
return "Hello, world!";
13+
return "Hello, world! " + Minecraft.getDebugFPS();
1314
}
1415
}

0 commit comments

Comments
 (0)