Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit dd1d01b

Browse files
committed
Use the proper FabricLoader
1 parent b4f7730 commit dd1d01b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • patchwork-fml/src/main/java/net/minecraftforge/fml

patchwork-fml/src/main/java/net/minecraftforge/fml/ModList.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
package net.minecraftforge.fml;
2121

22-
import net.fabricmc.loader.FabricLoader;
22+
import net.fabricmc.loader.api.FabricLoader;
2323

2424
public class ModList {
2525
// Patchwork: initalize directly because there's no args
@@ -31,6 +31,6 @@ public static ModList get() {
3131

3232
public boolean isLoaded(String modId) {
3333
// Patchwork: use Fabric Loader lookup instead of an internal one
34-
return FabricLoader.INSTANCE.isModLoaded(modId);
34+
return FabricLoader.getInstance().isModLoaded(modId);
3535
}
3636
}

0 commit comments

Comments
 (0)