Description
TaCZ NPC Fix
An unofficial patch for TaCZ:NPC that fixes NullPointerException crashes.
What does this mod do?
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.
Fixes applied:
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 persisting
Requirements
- Minecraft 1.20.1
- Forge 47.x
- [TaCZ:NPC](this mod does nothing without it)
- [TACZ (Timeless and Classics Zero)]
Installation
- Download and install Forge 1.20.1
- Drop
tacznpcfix-1.20.1.jarinto yourmodsfolder alongsidetacz_npc.jar - Launch the game
Notes
TaCZ: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.
Disclaimer
This is an unofficial patch and is not affiliated with the original TaCZ:NPC author.


