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();