AtomicStryker's Battle Towers

AtomicStryker's Battle Towers

23M Downloads

[Infernal Mobs] Crash upon killing an Infernal Zombie

katubug opened this issue · 2 comments

commented

An Infernal Zombie spawned inside a Roguelike Dungeon, and one of my players killed it. As soon as it died, the entire server crashed.

Here's the report: https://pastebin.com/AS20ihJF

InfernalMobs Version: 1.7.6 according to changelog
Forge Version: forge-1.12.2-14.23.5.2838-universal

commented

The crash is not related to Infernal Mobs in a way that i could see. From what i can trace, for some reason this EntityZombie registers as "EntityTameable" (this is not vanilla and must be the work of a different mod, a coremod even) which makes vanilla code run into the above error.

More technically:
In EntityAIHurtByTarget#alertOthers
the expression
"!entitycreature.isOnSameTeam(this.taskOwner.getRevengeTarget())"
with entitycreature being a different EntityZombie (which for some reason is an EntityTameable) and taskOwner being the attacked EntityZombie. Now, the implementation of Entity.isOnSameTeam relies on the parameter to not be null, however EntityZombie always returns null for getRevengeTarget()

commented