This commit is contained in:
FlorianMichael 2024-08-08 17:59:40 +02:00
parent 7c2fa1f03f
commit 5372b9f0de
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
3 changed files with 17 additions and 6 deletions

View File

@ -100,12 +100,20 @@ processResources {
expand(
"version": project.version,
"description": project.description,
"implVersion": "git-${project.name}-${project.version}:${project.latestCommitHash()}",
"mcVersion": project.minecraft_version
"implVersion": "git-${project.name}-${project.version}:${latestCommitHash()}",
"mcVersion": mcVersion()
)
}
}
String mcVersion() {
if (project.supported_versions.isEmpty()) {
return project.minecraft_version
} else {
return project.supported_versions
}
}
String latestCommitHash() {
def stdout = new ByteArrayOutputStream()
exec {

View File

@ -9,7 +9,10 @@ maven_version=3.4.4-SNAPSHOT
maven_description=Fabric mod to connect to EVERY Minecraft server version (Release, Beta, Alpha, Classic, Snapshots, Bedrock) with QoL fixes to the gameplay
# Minecraft/Fabric
minecraft_version=1.21
yarn_version=1.21+build.9
minecraft_version=1.21.1
yarn_version=1.21.1+build.1
loader_version=0.15.11
fabric_api_version=0.102.0+1.21
fabric_api_version=0.102.0+1.21.1
# empty for minecraft version above
supported_versions=>=1.21 <=1.21.1

View File

@ -39,7 +39,7 @@ public class ResourcePackHeaderDiff {
private final static Map<ProtocolVersion, GameVersion> GAME_VERSION_DIFF = new HashMap<>();
static {
registerVersion(ProtocolVersion.v1_21, 34, "1.21");
registerVersion(ProtocolVersion.v1_21, 34, "1.21.1");
registerVersion(ProtocolVersion.v1_20_5, 32, "1.20.6");
registerVersion(ProtocolVersion.v1_20_3, 22, "1.20.4");
registerVersion(ProtocolVersion.v1_20_2, 18, "1.20.2");