mirror of
https://github.com/TeamMidnightDust/MidnightLib.git
synced 2025-12-15 17:05:09 +01:00
NeoForge 1.21
- Added new method to get Modloader/Platform name in common classes
This commit is contained in:
@@ -10,6 +10,9 @@ import net.neoforged.fml.loading.FMLPaths;
|
||||
import java.nio.file.Path;
|
||||
|
||||
public class PlatformFunctionsImpl {
|
||||
public static String getPlatformName() {
|
||||
return "neoforge";
|
||||
}
|
||||
/**
|
||||
* This is our actual method to {@link PlatformFunctions#getConfigDirectory()}.
|
||||
*/
|
||||
|
||||
@@ -12,7 +12,9 @@ authors = "TeamMidnightDust, Motschen"
|
||||
description = '''
|
||||
Common Library for Team MidnightDust's mods.
|
||||
'''
|
||||
#logoFile = ""
|
||||
|
||||
[[mixins]]
|
||||
config = "midnightlib.mixins.json"
|
||||
|
||||
[[dependencies.midnightlib]]
|
||||
modId = "neoforge"
|
||||
|
||||
Reference in New Issue
Block a user