HeartFlashFix Patcher
基本信息
恢复受伤时已损失的心形闪烁提示。来源:BugfixMod / williewillus。
配置开关 clientHeartFlashFix(默认 true)。
源码注释:This makes hearts flash the health "delta" after damage by assigning an unused clientside field. —— 借一个未使用的客户端字段承载 delta。
目标
| 项 | 值 |
|---|---|
| 补丁名 | HeartFlashFix |
| 目标类 | net/minecraft/client/entity/EntityClientPlayerMP |
| 目标方法 | EntityClientPlayerMP.attackEntityFrom |
| 描述符 | (Lnet/minecraft/util/DamageSource;F)Z |
涉及的 4 条映射(HeartFlashFixEnabled 分支)
| 键 | SRG |
|---|---|
EntityClientPlayerMP.prevHealth(字段) |
field_70735_aL |
EntityClientPlayerMP.getHealth |
func_110143_aJ |
EntityClientPlayerMP.attackEntityFrom |
func_70097_a |
EntityClientPlayerMP.setPlayerSPHealth |
func_71150_b |
平台限制
专用服务器下被强制关闭并落盘。
未注册的兼容补丁
HeartFlashFixCompatPatcher.java 文件存在(23 个 patcher 文件之一),
但注册代码被整块注释(BugfixModClassTransformer.java:287-297),
条件为 HeartBlinkFixEnabled && HeartFlashFixEnabled。
该补丁不会生效,属于死代码。
相关条目
源码
src/main/java/pl/asie/foamfix/bugfixmod/coremod/patchers/HeartFlashFixPatcher.java- (未注册)
src/main/java/pl/asie/foamfix/bugfixmod/coremod/patchers/HeartFlashFixCompatPatcher.java