Skip to content

Commit 58c7a55

Browse files
committed
fix: forge mod load
1 parent 590e2b7 commit 58c7a55

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

forge/src/main/java/com/xxmicloxx/NoteBlockAPI/forge/NoteBlockAPIForge.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
import com.xxmicloxx.NoteBlockAPI.NoteBlockAPI;
44
import dev.architectury.platform.forge.EventBuses;
5-
import net.minecraftforge.eventbus.api.IEventBus;
65
import net.minecraftforge.fml.common.Mod;
6+
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
77

88
@Mod(NoteBlockAPI.MOD_ID)
99
public final class NoteBlockAPIForge {
10-
public NoteBlockAPIForge(IEventBus modBus) {
10+
public NoteBlockAPIForge(FMLJavaModLoadingContext context) {
1111
// Submit our event bus to let Architectury API register our content on the right time.
12-
EventBuses.registerModEventBus(NoteBlockAPI.MOD_ID, modBus);
12+
EventBuses.registerModEventBus(NoteBlockAPI.MOD_ID, context.getModEventBus());
1313

1414
// Run our common setup.
1515
NoteBlockAPI.init();
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"pack": {
3+
"description": "NoteBlockAPI",
4+
"forge:server_data_pack_format": 15,
5+
"pack_format": 15
6+
}
7+
}

0 commit comments

Comments
 (0)