Skip to content

Commit ade9556

Browse files
committed
fix deprecation warning
1 parent a94f5b1 commit ade9556

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/dev/isxander/controlify/compatibility/CompatMixinPlugin.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ protected CompatMixinPlugin() {
1414
//? if fabric {
1515
this.compatEnabled = net.fabricmc.loader.api.FabricLoader.getInstance().isModLoaded(this.getFabricModId());
1616
//?} elif neoforge {
17-
/*this.compatEnabled = net.neoforged.fml.loading.LoadingModList.get().getModFileById(this.getNeoforgeModId()) != null;
17+
/*//? if >=26.2 {
18+
this.compatEnabled = net.neoforged.fml.loading.FMLLoader.getCurrent().getLoadingModList().getModFileById(this.getNeoforgeModId()) != null;
19+
//?} else {
20+
/^this.compatEnabled = net.neoforged.fml.loading.LoadingModList.get().getModFileById(this.getNeoforgeModId()) != null;
21+
^///?}
1822
*///?}
1923
}
2024

0 commit comments

Comments
 (0)