This commit is contained in:
Cloudburst
2021-08-23 18:21:30 +02:00
committed by GitHub
parent fe4fd53b71
commit 8224120085

View File

@@ -61,6 +61,7 @@ public class Phase extends Module {
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) return;
if (mode.get() != Mode.CollisionShape) return; if (mode.get() != Mode.CollisionShape) return;
if (event == null || event.pos == null) return;
if (event.type != CollisionShapeEvent.CollisionType.BLOCK) return; if (event.type != CollisionShapeEvent.CollisionType.BLOCK) return;
if (event.pos.getY() < mc.player.getY()) { if (event.pos.getY() < mc.player.getY()) {
if (mc.player.isSneaking()) { if (mc.player.isSneaking()) {