All versions
1.0.5.1
Release
Tuanzi'sMod 1.0.5.14 months ago 21
Compatibility
Minecraft: Java Edition
26.1.x
Platform
Fabric
Supported environments
Client and server
Changes
Tuanzi's Mod 1.0.5.1 更新日志
修复
- 修复 Windows 平台下自动更新下载时旧 jar 文件被锁定占用的 Bug:
- 问题详情:由于 Windows 系统的底层文件锁机制,JVM 运行期间会对当前加载的模组
.jar文件加锁,导致自动更新进程在尝试移动备份该文件时触发FileSystemException并抛出“另一个程序正在使用此文件,进程无法访问”的严重错误。 - 解决方案:针对 Windows 平台引入了延迟更新机制。自动更新下载时不再直接操作运行中的旧包,而是先将新包下载暂存为临时文件(
.tmp),并同时在mods目录中生成一个轻量级延迟替换脚本update.bat;注册 JVM 关闭钩子,在玩家点击重启、当前 JVM 进程优雅退出释放文件锁的一瞬间,后台拉起批处理脚本,延迟 2 秒安全地执行旧包重命名归档(.jar.bak)及新包应用,最后脚本自我销毁,从而在 Windows 平台完美实现平滑无感的安全热升级。
- 问题详情:由于 Windows 系统的底层文件锁机制,JVM 运行期间会对当前加载的模组
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:zJPSl9H6:KWq9ISmU"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:zJPSl9H6:KWq9ISmU"
}

