Skip to content

Commit

Permalink
possible bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xia-mc committed Jul 11, 2024
1 parent a0d3656 commit ea51b4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/main/java/keystrokesmod/module/ModuleManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ public void register() {
this.addModule(autoRespawn = new AutoRespawn());
antiBot.enable();
commandChat.enable();
modSpoofer.enable();
modules.sort(Comparator.comparing(Module::getPrettyName));
}

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/keystrokesmod/module/impl/movement/Fly.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ else if (Utils.jumpDown()) {
AxisAlignedBB grimACBox = playerBox.expand(1, 1, 1);
if (entity instanceof EntityBoat) {
AxisAlignedBB boatBox = entity.getEntityBoundingBox();
if (boatBox.intersectsWith(grimACBox) && !(boatBox.intersectsWith(playerBox))) {
if (boatBox.intersectsWith(grimACBox) && !(boatBox.intersectsWith(playerBox))) { // if grimAC disabled simulation
// normal fly code
if (Utils.jumpDown()) {
mc.thePlayer.motionY = 0.5 * verticalSpeed.getInput();
} else if (mc.thePlayer.isSneaking()) {
Expand Down

0 comments on commit ea51b4c

Please sign in to comment.