forked from RepoMirrors/kami-blue
Mute potential modifier exception from sprint
This commit is contained in:
parent
262f866851
commit
e339a0236c
@ -11,10 +11,12 @@ public class Sprint extends Module {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onUpdate() {
|
public void onUpdate() {
|
||||||
|
try {
|
||||||
if (!mc.player.collidedHorizontally && mc.player.moveForward > 0)
|
if (!mc.player.collidedHorizontally && mc.player.moveForward > 0)
|
||||||
mc.player.setSprinting(true);
|
mc.player.setSprinting(true);
|
||||||
else
|
else
|
||||||
mc.player.setSprinting(false);
|
mc.player.setSprinting(false);
|
||||||
|
} catch (Exception e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user