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:
parent
ff5d9872ad
commit
d5ce82951b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user