Epic Fight Awaken Health Fix
Fixes a client-side crash in Epic Fight Awaken (1.2.7.2) where the Vacuum Slice projectile's null health-bar texture throws a NullPointerException in Epic Fight's renderer, by substituting a safe fallback texture instead of crashing.
介绍
Awaken Health Bar Fix
A tiny, focused patch for a client crash introduced in Epic Fight Awaken 1.2.7.2.
The problem
Epic Fight Awaken 1.2.7.2 changed EFAFaction.EFA_NO_ALIVE (the faction used by the Vacuum Slice airslash projectile entity) to build its health-bar texture with a null ResourceLocation. Epic Fight Awaken 1.2.6 shipped a real texture here — this is a regression, not intended behavior.
When Epic Fight tries to draw a health bar over that entity, the null texture reaches EpicFightRenderTypes.entityUITexture(ResourceLocation), which feeds it straight into ConcurrentHashMap.computeIfAbsent(null, ...). ConcurrentHashMap throws a NullPointerException on a null key, which crashes the game the instant that entity is rendered:
java.lang.NullPointerException: Rendering entity in world
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(...)
at yesman.epicfight.client.renderer.EpicFightRenderTypes.entityUITexture(...)
at yesman.epicfight.client.gui.EntityUI.drawUIAsLevelModel(...)
at yesman.epicfight.client.gui.HealthBar.draw(...)
Practically, this means any player who triggers Vacuum Slice (or has one on-screen) crashes to desktop.
The fix
A single Mixin on EpicFightRenderTypes intercepts entityUITexture and substitutes a safe fallback texture (minecraft:textures/gui/icons.png) whenever the incoming ResourceLocation is null, before it ever reaches the ConcurrentHashMap:
- No more crash — the entity renders with a generic fallback icon instead of a broken health bar.
- The fix is generic: it guards the shared Epic Fight rendering path itself, so it also protects against any other mod or mob-patch that forgets to supply a health-bar texture, not just this one Awaken regression.
- Purely defensive — it changes nothing for any entity that already has a valid texture.
Compatibility
- Client-side only. Safe to leave on servers/dedicated packs; it simply does nothing there.
- Works alongside any version of Epic Fight Awaken. If a future Awaken release fixes the null texture upstream, this mod becomes a no-op — it never triggers unless it sees a null texture.
- No config, no commands, no other footprint.
Requirements
- Epic Fight (20.0+)
- Minecraft 1.20.1, Forge
- Epic Fight awaken
Installation
Drop the jar in your mods folder alongside Epic Fight and Epic Fight Awaken. That’s it — no configuration needed.
Credits
Diagnosed from a live crash report (ConcurrentHashMap.computeIfAbsent NPE on epicfight_awaken:vacuum_slice) and fixed via Mixin.
常见问题
Epic Fight Awaken Health Fix 支持哪些 Minecraft 版本?
Epic Fight Awaken Health Fix 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Epic Fight Awaken Health Fix 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
epic_lover 的其他作品
查看全部 →Mobs Epicfied
修复 Epic Fight 生物卡在旧招式组的问题;为每种武器添加自定义连招、技能和配置选项。
Epic Fight Fist Fix
修复 Epic Fight 中空气物品总被判定为战斗优选物品的问题。
Better Combat × Epic Fight Compat
根据你的 Epic Fight 战斗模式状态,在 Epic Fight 和 Better Combat 之间自动切换战斗系统。
Epic Fight Guard Fix
为Epic Fight的盾牌/武器防御系统(基础GuardSkill、Weapons of Miracles的Perfect Bulwark以及Epic Fight Nightfall的招架)提供Mixin修复,并修复徒手战斗及其他核心bug。
评论
登录后评论和评分