mirror of
https://github.com/MinecraftForge/MinecraftForge
synced 2026-08-22 04:26:10 -04:00
Load mods that declare explicit 1.21 compatibility as 1.21.1 is a minor bugfix.
This commit is contained in:
parent
db4d8a4729
commit
dc594f196a
2 changed files with 6 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue