This commit is contained in:
TheBrokenRail 2020-06-25 08:50:48 -04:00
parent e4b15f4dd9
commit e5ca6e5e7b
3 changed files with 15 additions and 2 deletions

View File

@ -1,5 +1,8 @@
# Changelog
**1.0.10**
* Fix Fabric API Update Detection
**1.0.9**
* Fix Transitive Dependencies

View File

@ -9,7 +9,7 @@ org.gradle.jvmargs = -Xmx1G
fabric_loader_version = 0.8.8+build.202
# Mod Properties
mod_version = 1.0.9
mod_version = 1.0.10
maven_group = com.thebrokenrail
# Dependencies

View File

@ -61,9 +61,19 @@ public class Util {
}
}
private static String getMajorVersion() {
updateMinecraftVersion();
String[] parts = minecraftVersion.getReleaseTarget().split("\\.");
if (parts.length > 1) {
return String.format("%s.%s", parts[0], parts[1]);
} else {
return minecraftVersion.getName();
}
}
private static boolean isVersionCompatible(String versionStr, char prefix) {
updateMinecraftVersion();
return versionStr.endsWith(prefix + minecraftVersionSemantic) || versionStr.endsWith(prefix + minecraftVersion.getReleaseTarget());
return versionStr.endsWith(prefix + minecraftVersionSemantic) || versionStr.endsWith(prefix + minecraftVersion.getReleaseTarget()) || versionStr.endsWith(prefix + getMajorVersion());
}
public static boolean isVersionCompatible(String versionStr) {