This commit is contained in:
parent
0a2afee6ee
commit
64d94e4d68
@ -1,5 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
**1.1.10**
|
||||||
|
* Improve
|
||||||
|
|
||||||
**1.1.9**
|
**1.1.9**
|
||||||
* Add ```modupdater``` Entry-Point
|
* Add ```modupdater``` Entry-Point
|
||||||
|
|
||||||
|
@ -2,17 +2,17 @@
|
|||||||
org.gradle.jvmargs = -Xmx1G
|
org.gradle.jvmargs = -Xmx1G
|
||||||
|
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
minecraft_version = 1.16.2
|
minecraft_version = 1.16.2-rc2
|
||||||
curseforge_id = 391583
|
curseforge_id = 391583
|
||||||
simple_minecraft_version = 1.16.2
|
simple_minecraft_version = 1.16.2
|
||||||
yarn_build = 1
|
yarn_build = 1
|
||||||
fabric_loader_version = 0.9.1+build.205
|
fabric_loader_version = 0.9.1+build.205
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.1.9
|
mod_version = 1.1.10
|
||||||
maven_group = com.thebrokenrail
|
maven_group = com.thebrokenrail
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
fabric_api_version = 0.17.2+build.396-1.16
|
fabric_api_version = 0.17.2+build.396-1.16
|
||||||
modmenu_version = 1.14.2+build.27
|
modmenu_version = 1.14.6+build.31
|
||||||
moshi_version = 1.9.2
|
moshi_version = 1.9.2
|
||||||
|
@ -10,7 +10,7 @@ import com.thebrokenrail.modupdater.api.UpdateStrategy;
|
|||||||
import com.thebrokenrail.modupdater.data.ModUpdate;
|
import com.thebrokenrail.modupdater.data.ModUpdate;
|
||||||
import com.thebrokenrail.modupdater.util.Util;
|
import com.thebrokenrail.modupdater.util.Util;
|
||||||
import net.fabricmc.loader.api.SemanticVersion;
|
import net.fabricmc.loader.api.SemanticVersion;
|
||||||
import net.fabricmc.loader.util.version.VersionParsingException;
|
import net.fabricmc.loader.api.VersionParsingException;
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -65,7 +65,7 @@ public class CurseForgeStrategy implements UpdateStrategy {
|
|||||||
String versionStr;
|
String versionStr;
|
||||||
GameVersion version = Util.getMinecraftVersion();
|
GameVersion version = Util.getMinecraftVersion();
|
||||||
if (version.isStable()) {
|
if (version.isStable()) {
|
||||||
versionStr = version.getName();
|
versionStr = version.getId();
|
||||||
} else {
|
} else {
|
||||||
versionStr = version.getReleaseTarget() + "-Snapshot";
|
versionStr = version.getReleaseTarget() + "-Snapshot";
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ import com.thebrokenrail.modupdater.api.UpdateStrategy;
|
|||||||
import com.thebrokenrail.modupdater.data.ModUpdate;
|
import com.thebrokenrail.modupdater.data.ModUpdate;
|
||||||
import com.thebrokenrail.modupdater.util.Util;
|
import com.thebrokenrail.modupdater.util.Util;
|
||||||
import net.fabricmc.loader.api.SemanticVersion;
|
import net.fabricmc.loader.api.SemanticVersion;
|
||||||
import net.fabricmc.loader.util.version.VersionParsingException;
|
import net.fabricmc.loader.api.VersionParsingException;
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -61,7 +61,7 @@ public class JSONStrategy implements UpdateStrategy {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
String version = Util.getMinecraftVersion().getName();
|
String version = Util.getMinecraftVersion().getId();
|
||||||
if (map.containsKey(version)) {
|
if (map.containsKey(version)) {
|
||||||
LatestVersionEntry entry = map.get(version);
|
LatestVersionEntry entry = map.get(version);
|
||||||
if (!oldVersion.equals(entry.version)) {
|
if (!oldVersion.equals(entry.version)) {
|
||||||
|
@ -6,7 +6,7 @@ import com.thebrokenrail.modupdater.api.UpdateStrategy;
|
|||||||
import com.thebrokenrail.modupdater.data.ModUpdate;
|
import com.thebrokenrail.modupdater.data.ModUpdate;
|
||||||
import com.thebrokenrail.modupdater.util.Util;
|
import com.thebrokenrail.modupdater.util.Util;
|
||||||
import net.fabricmc.loader.api.SemanticVersion;
|
import net.fabricmc.loader.api.SemanticVersion;
|
||||||
import net.fabricmc.loader.util.version.VersionParsingException;
|
import net.fabricmc.loader.api.VersionParsingException;
|
||||||
import org.w3c.dom.Document;
|
import org.w3c.dom.Document;
|
||||||
import org.w3c.dom.Node;
|
import org.w3c.dom.Node;
|
||||||
import org.w3c.dom.NodeList;
|
import org.w3c.dom.NodeList;
|
||||||
|
@ -75,13 +75,13 @@ public class Util {
|
|||||||
if (parts.length > 1) {
|
if (parts.length > 1) {
|
||||||
return String.format("%s.%s", parts[0], parts[1]);
|
return String.format("%s.%s", parts[0], parts[1]);
|
||||||
} else {
|
} else {
|
||||||
return minecraftVersion.getName();
|
return minecraftVersion.getId();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isVersionCompatible(String versionStr, char prefix, boolean strict) {
|
private static boolean isVersionCompatible(String versionStr, char prefix, boolean strict) {
|
||||||
updateMinecraftVersion();
|
updateMinecraftVersion();
|
||||||
return versionStr.endsWith(prefix + minecraftVersionSemantic) || versionStr.endsWith(prefix + minecraftVersion.getName()) || (!strict && (versionStr.endsWith(prefix + minecraftVersion.getReleaseTarget()) || versionStr.endsWith(prefix + getMajorVersion())));
|
return versionStr.endsWith(prefix + minecraftVersionSemantic) || versionStr.endsWith(prefix + minecraftVersion.getId()) || (!strict && (versionStr.endsWith(prefix + minecraftVersion.getReleaseTarget()) || versionStr.endsWith(prefix + getMajorVersion())));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isVersionCompatible(String id, String versionStr, boolean strict) {
|
public static boolean isVersionCompatible(String id, String versionStr, boolean strict) {
|
||||||
|
Reference in New Issue
Block a user