An unofficial patch for TaCZ:NPC that fixes NullPointerException crashes.
TaCZ:NPC adds gun-wielding NPCs to your world — but the mod has been discontinued and contains a critical bug: when an NPC locks onto a target and that target dies, the game crashes with a NullPointerException.
This mod applies a Mixin patch to fix that crash without modifying TaCZ:NPC itself.
TaczShootAttack#tick() — cancels the tick if the lock-on target is null, dead, or removedTaczShootAttack#stop() — clears the target reference when the behavior stops, preventing stale references from persistingtacznpcfix-1.20.1.jar into your mods folder alongside tacz_npc.jarTaCZ:NPC is officially discontinued. The original author recommends checking out [Pillager's Guns (TACZ support) and Insurgents as alternatives. This patch is for those who still want to use TaCZ:NPC despite its discontinued status.
This mod is Issues and PRs are welcome.
This is an unofficial patch and is not affiliated with the original TaCZ:NPC author.