0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-20 01:12:13 +02:00

Add null check in NukerLegitHack.breakBlock()

This commit is contained in:
Alexander01998 2024-09-02 17:03:12 +02:00
parent ff5d9872ad
commit d5ce82951b

View File

@ -181,7 +181,8 @@ public final class NukerLegitHack extends Hack
private boolean breakBlock(BlockPos pos)
{
BlockBreakingParams params = BlockBreaker.getBlockBreakingParams(pos);
if(!params.lineOfSight() || params.distanceSq() > range.getValueSq())
if(params == null || !params.lineOfSight()
|| params.distanceSq() > range.getValueSq())
return false;
// face block