Blood Magic

Blood Magic

94M Downloads

crash with java.lang.NullPointerException during chunk load

Sadzony opened this issue ยท 8 comments

commented

Issue Description:

Game crashes when loading a chunk containing some blood magic feature. I'm using a personalized modpack. I'm getting a
java.lang.NullPointerException: Feature placement. Tested with several worlds, same error happens.
Link to the full crash report:
https://pastebin.com/DpXZAnET

Steps to reproduce:

  1. Enter new world
  2. Fly around until a chunk containing the feature is loaded

Affected Versions (Do not use "latest"):

  • BloodMagic: Alpha BloodMagic-1.16.4-3.1.0-15.jar
  • Minecraft: 1.16.5
  • Forge: forge-36.0.48
commented

Closing this, as it should be fixed.

commented

Fixed with a simple null check in OnCheckLooting
if(event == null){ return; }

commented

I'm not sure, but everything started to work fine after adding the line so I'll just keep it there and see if i encounter any bugs

commented

The event should absolutely never be null. Your issue lies elsewhere.

commented

@Sadzony how did you get this working I'm having a similar issues when a Creeper explodes.

bloodmagic:1.16.4-3.1.0-15
Minecraft: 1.16.5
forge-1.16.5-36.1.1

https://pastebin.com/X4KZACwY

commented

Looks like its a conflict with scaling health 1.16.5-4.0.5

SilentChaos512/ScalingHealth#327

commented

a3d7a8c this commit seems to fix it, got to wait for the next version on curseforge.