- if (stomachs.Count < component.RequiredStomachs)
- return false;
-
- // Run through the mobs' stomachs
- foreach (var ent in stomachs)
- {
- // Find a stomach with a SpecialDigestible
- if (ent.Comp1.SpecialDigestible == null)
- continue;
- // Check if the food is in the whitelist
- if (_whitelistSystem.IsWhitelistPass(ent.Comp1.SpecialDigestible, food))
- return true;
-
- // If their diet is whitelist exclusive, then they cannot eat anything but what follows their whitelisted tags. Else, they can eat their tags AND human food.
- if (ent.Comp1.IsSpecialDigestibleExclusive)
- return false;
- }
-
- if (component.RequiresSpecialDigestion)
- return false;
+ if (ent.Comp.RequireDead && _mobState.IsAlive(ent))