Fix non-humanoid mobs being destroyed on devour (#38087)

* Allow non-preference living things to be added to a devourer's stomach

* Fix ordering of devour logic

* Minor refactor for whitelist on storage and food preference

* Fix linter issue

* Coerce workflow to run again; also fix bad indenting error

* Code review changes
This commit is contained in:
Sparlight
2025-07-09 06:43:35 -06:00
committed by GitHub
parent 5a46e09830
commit 2c3c510fe9
4 changed files with 44 additions and 34 deletions

View File

@@ -136,8 +136,12 @@
Piercing: 15
Slash: 15
- type: Devourer
foodPreference: Humanoid
shouldStoreDevoured: true
foodPreferenceWhitelist:
components:
- HumanoidAppearance
stomachStorageWhitelist:
components:
- MobState
chemical: Ichor
healRate: 7.5
whitelist: