Blood Stains cause null pointer crashes
dkmk100 opened this issue ยท 1 comments
Issue type:
- ๐ Bug
Short description:
When blood stains spawn on other modded blocks, they can lead to a crash as blood stains pass an unexpected null value to
Steps to reproduce the problem:
- have a block that overrides isValidSpawn and uses the entity
- have a mob die by falling on the block
- it'll crash when it tries to spawn a blood stain
Expected behaviour:
for a bloodstain to spawn and the game to keep running. If you insist on a valid spawn check, may I suggest either using the dying entity OR haivng a try-catch and doing something else on error?
Versions:
- This mod: 1.2.0
- Minecraft: 1.18.2
- Forge: 40.1.31