NPE when getting RenderAABB of grapple arrow without shootingEntity
Meldexun opened this issue ยท 0 comments
When a grapple arrow is loaded from NBT it has no owner and normally gets removed from the world when it is updated the next time. But other mods (in this case EntityCulling) might call Entity#getRenderBoundingBox
which then will throw a NPE.
grapplemod/main/java/com/yyon/grapplinghook/entities/grappleArrow.java
Lines 299 to 300 in a3e0220
Checking if the shooterEntity is null and returning an "empty" bounding box (new AxisAlignedBB(0, 0, 0, 0, 0, 0)
) should fix this issue.