fix #38
This commit is contained in:
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user