This commit is contained in:
parent
e4b15f4dd9
commit
e5ca6e5e7b
@ -1,5 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
**1.0.10**
|
||||||
|
* Fix Fabric API Update Detection
|
||||||
|
|
||||||
**1.0.9**
|
**1.0.9**
|
||||||
* Fix Transitive Dependencies
|
* Fix Transitive Dependencies
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ org.gradle.jvmargs = -Xmx1G
|
|||||||
fabric_loader_version = 0.8.8+build.202
|
fabric_loader_version = 0.8.8+build.202
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.0.9
|
mod_version = 1.0.10
|
||||||
maven_group = com.thebrokenrail
|
maven_group = com.thebrokenrail
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
@ -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) {
|
private static boolean isVersionCompatible(String versionStr, char prefix) {
|
||||||
updateMinecraftVersion();
|
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) {
|
public static boolean isVersionCompatible(String versionStr) {
|
||||||
|
Reference in New Issue
Block a user