Skip to content

v1.7.13

Choose a tag to compare

@OLKMO OLKMO released this 01 Aug 06:11

v1.7.13

block-destroy-coordinate-guard mixin 注入失败修复 / block-destroy-coordinate-guard mixin injection failure fix (Issue #15)

修复 v1.7.12 引入的 LevelDestroyBlockGuardMixindestroyBlock 方法签名错误导致 mixin 注入失败、游戏启动崩溃的问题。

Fixed the LevelDestroyBlockGuardMixin crash introduced in v1.7.12, caused by incorrect destroyBlock method signature leading to mixin injection failure at game startup.

问题原因 / Root cause:

1.21.1 中 Level.destroyBlock 的真实签名是 4 个参数 destroyBlock(BlockPos, boolean, Entity, int),但 v1.7.12 的 mixin 错误地使用了 3 个参数的签名 destroyBlock(BlockPos, boolean, Entity),导致 mixin 找不到目标方法,抛出 InvalidInjectionException: Critical injection failure

In 1.21.1, Level.destroyBlock has 4 parameters destroyBlock(BlockPos, boolean, Entity, int), but the v1.7.12 mixin incorrectly used a 3-parameter signature destroyBlock(BlockPos, boolean, Entity), causing the mixin to fail finding the target method and throwing InvalidInjectionException: Critical injection failure.

影响 / Impact:

安装 v1.7.12 后游戏无法启动,崩溃日志显示 Mixin apply for mod fucksable failed

After installing v1.7.12, the game cannot start, with crash log showing Mixin apply for mod fucksable failed.

兼容性 / Compatibility

  • Sable 1.x 和 2.x / Sable 1.x and 2.x
  • NeoForge 1.21.1
  • Mohist/Youer 混合服务端 / Mohist/Youer hybrid servers