From 22adbe1cb70e5fe9090c64d8b08a01a21d4b1370 Mon Sep 17 00:00:00 2001 From: stormybytes Date: Fri, 29 Oct 2021 20:53:41 +0700 Subject: [PATCH] Fix Prone null pos bug Fixes #71 --- src/main/java/anticope/rejects/modules/Prone.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/anticope/rejects/modules/Prone.java b/src/main/java/anticope/rejects/modules/Prone.java index 421c780..1bfda94 100644 --- a/src/main/java/anticope/rejects/modules/Prone.java +++ b/src/main/java/anticope/rejects/modules/Prone.java @@ -14,9 +14,9 @@ public class Prone extends Module { @EventHandler private void onCollisionShape(CollisionShapeEvent event) { - if (mc.world == null || mc.player == null) return; + if (mc.world == null || mc.player == null || event.pos == null) return; if (event.state == null) return; - + if (event.pos.getY() != mc.player.getY() + 1) return; event.shape = VoxelShapes.fullCube();