All versions
2.7fix1
Release
Create-Big-Cannon-Autogun-Revolution 2.7fix12 months ago 178
Compatibility
Minecraft: Java Edition
1.21.1–1.21.11
Platform
NeoForge
Supported environments
Client and server
Changes
修复确认
- 崩溃根因:UniversalProximityFuzeItem.appendHoverText 在两端都会执行,但里面直接调用了 Minecraft.getInstance(),专用服务器加载不到客户端类,抛 NoClassDefFoundError 导致崩溃
- 修复方式:潜行判定改为 FMLEnvironment.dist.isClient() 守卫 + 新增客户端专用工具类 ClientTooltipUtils.isPlayerSneaking(),服务器端永远不会加载客户端类
- 全项目复查:其余客户端引用只剩 CBCAddon 里的 ItemProperties,位于 FMLClientSetupEvent(仅客户端触发),安全
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:8lptIdH0:Rp5mH1Aw"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:8lptIdH0:Rp5mH1Aw"
}

