mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
Load mods that declare explicit 1.21 compatibility as 1.21.1 is a minor bugfix.
This commit is contained in:
2 files changed
+6
-6
No files matched your search
@@ -19,11 +19,11 @@ public class VersionSupportMatrix {
|
||||
private static final HashMap<String, List<ArtifactVersion>> overrideVersions = new HashMap<>();
|
||||
static {
|
||||
final ArtifactVersion version = new DefaultArtifactVersion(FMLLoader.versionInfo().mcVersion());
|
||||
if (MavenVersionAdapter.createFromVersionSpec("[1.19.2]").containsVersion(version)) {
|
||||
// 1.19.2 is Compatible with 1.19.1
|
||||
add("languageloader.javafml", "42");
|
||||
add("mod.minecraft", "1.19.1");
|
||||
add("mod.forge", "42.0.9");
|
||||
if (MavenVersionAdapter.createFromVersionSpec("[1.21.1]").containsVersion(version)) {
|
||||
// 1.21.1 is Compatible with 1.21
|
||||
add("languageloader.javafml", "51");
|
||||
add("mod.minecraft", "1.21");
|
||||
add("mod.forge", "51.0.33");
|
||||
}
|
||||
}
|
||||
private static void add(String key, String value) {
|
||||
|
||||
+1
-1
@@ -14,4 +14,4 @@ MAPPING_VERSION=1.21.1
|
||||
// Set to true before the first build of a new MC version, so we don't do compatibility checks
|
||||
CHECK_COMPATIBILITY=false
|
||||
// Set to true to allow for fuzzy patching. Useful during updateing
|
||||
UPDATING=true
|
||||
UPDATING=false
|
||||
Reference in new issue
Block a user