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

Fix NPE in AutoFishHack

https://www.reddit.com/r/WurstClient/comments/w4cv8u/wurst_error/
This commit is contained in:
Alexander01998 2022-09-20 11:34:51 +02:00
parent 99af175f8b
commit 3ea7930f68

View File

@ -337,6 +337,9 @@ public final class AutoFishHack extends Hack
private void drawValidRange(MatrixStack matrixStack,
FishingBobberEntity bobber, int regionX, int regionZ)
{
if(validRangeBox == null)
return;
matrixStack.push();
matrixStack.translate(bobber.getX() - regionX, bobber.getY(),
bobber.getZ() - regionZ);