v1.2.0 — target MC 26.1.2
User reported NoClassDefFoundError: net/minecraft/class_7471 on MC 26.1.2. Root cause: v1.1.1 was built for 1.21.6 intermediary, which uses class_NNNN obfuscated names. MC 26.x ships an unobfuscated server jar with Mojang names directly, so intermediary lookups for class_7471 (=PlayerChatMessage in 1.21.6) fail at runtime. Build retargeted to 26.1.2: - minecraft 26.1.2 / loader 0.19.2 / fabric-api 0.148.2+26.1.2 - Loom 1.16-SNAPSHOT, Shadow 9.4.1 (Java 25 bytecode support) - Gradle 9.5.1, JDK 25 toolchain - Drop officialMojangMappings(); use intermediary:0.0.0 identity (Mojang stopped publishing proguard mappings for 26.x). - Adapt code: ServerPlayer.getServer() removed in 26.1.2 → use player.level().getServer() (ServerPlayer.level() returns ServerLevel). - NeoForge dropped from this build — moddev plugin can't parse 26.1.2 yet, falls back to 1.21.5. - 1.2.0 = Fabric only; 1.21.6 users stay on 1.1.1.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
plugins {
|
||||
id 'fabric-loom' version '1.10-SNAPSHOT'
|
||||
id 'com.gradleup.shadow' version '8.3.5'
|
||||
id 'fabric-loom' version '1.16-SNAPSHOT'
|
||||
id 'com.gradleup.shadow' version '9.4.1'
|
||||
}
|
||||
|
||||
archivesBaseName = "${project.mod_id}-fabric"
|
||||
base.archivesName = "${project.mod_id}-fabric"
|
||||
|
||||
// common/ 디렉토리의 로더 비종속 소스를 fabric 컴파일에 포함 (Mojang 매핑으로 컴파일)
|
||||
sourceSets {
|
||||
@@ -15,14 +15,11 @@ sourceSets {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// MC 26.x: server jar 가 unobfuscated. intermediary 0.0.0 = identity mapping.
|
||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||
mappings loom.officialMojangMappings()
|
||||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||
}
|
||||
|
||||
loom {
|
||||
serverOnlyMinecraftJar()
|
||||
mappings "net.fabricmc:intermediary:0.0.0:v2"
|
||||
implementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||
implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||
}
|
||||
|
||||
processResources {
|
||||
@@ -30,6 +27,8 @@ processResources {
|
||||
inputs.property "mod_id", project.mod_id
|
||||
inputs.property "mod_name", project.mod_name
|
||||
|
||||
filteringCharset = 'UTF-8'
|
||||
|
||||
filesMatching("fabric.mod.json") {
|
||||
expand(
|
||||
"version": project.version,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"schemaVersion": 1,
|
||||
"id": "${mod_id}",
|
||||
"version": "${version}",
|
||||
"name": "${mod_name}",
|
||||
"name": "채팅정답",
|
||||
"description": "음악퀴즈(mq) 데이터팩이 정답 입력을 받는 상태(init=5)에서 채팅을 가로채 mq:answer/submit 함수로 전달합니다.",
|
||||
"authors": [ "tkrmagid" ],
|
||||
"contact": {
|
||||
@@ -14,8 +14,8 @@
|
||||
"main": [ "kr.tkrmagid.chatanswer.fabric.ChatAnswerFabric" ]
|
||||
},
|
||||
"depends": {
|
||||
"fabricloader": ">=0.16.0",
|
||||
"minecraft": ">=1.21.6",
|
||||
"fabricloader": ">=0.19.0",
|
||||
"minecraft": ">=26.1.2",
|
||||
"java": ">=21",
|
||||
"fabric-api": "*"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user