Primitive Menagerie (0.0.0-beta.5)
Curse Maven Snippet
What's new
v0.0.0-beta.5 - Fix server crash when some creatures die
Fix
- Server crash on death: killing a Haunted Tool, Bewitched Tome, Treasure Slime or Trollager threw a
NullPointerExceptioninLivingEntity.dropFromLootTableand shut the server down. These creatures now use an empty loot table; their custom drops are unchanged. - Late sound registration: the mod's sound events were created after the registry event had fired, which crashed the first time a creature played one of its own sounds (for example the Trollager death sound). They are now created at startup.
Technical Changes
getDefaultLootTable()returnsprimitive_menagerie:entities/emptyinstead ofnullinHauntedTool,EnchantedBook,TreasureSlimeandTrollager.PMSoundEventsis initialised fromPMRegistries.register.- Added GameTests that kill each of the four creatures and check there is no exception and that held items drop.
Servers: this update is strongly recommended, as any of these four creatures dying could crash the server. Requires Mobweave Core. Non-commercial use only (CC BY-NC 3.0).
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include