Immersive Engineering

Immersive Engineering

134M Downloads

Missing null check in nullable isLadder

Raycoms opened this issue ยท 0 comments

commented

Minecraft Version

1.18

Immersive Engineering Version

Any

Expected Behavior

public boolean isLadder(BlockState state, LevelReader world, BlockPos pos, LivingEntity entity)

To deal with potential null entities.

Actual Behavior

Not dealing with potential null entities.

Steps to reproduce

Call the method with a null entity.

Debug Crash Log

https://gist.github.com/Raycoms/80ce065a9505b94d7f95112218ab252f