
An IllegalStateException may occur when an entity is damaged by fire or a potion effect immediately after an EntityComplexPart is damaged by an explosion. This is fixed by performing the instanceof EntityComplexPart check prior to setting CraftEventFactory.entityDamage.