Fix Prone null pos bug

Fixes #71
This commit is contained in:
stormybytes
2021-10-29 20:53:41 +07:00
parent 627fb8293d
commit 22adbe1cb7

View File

@@ -14,7 +14,7 @@ public class Prone extends Module {
@EventHandler @EventHandler
private void onCollisionShape(CollisionShapeEvent event) { 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.state == null) return;
if (event.pos.getY() != mc.player.getY() + 1) return; if (event.pos.getY() != mc.player.getY() + 1) return;