Skip to content

Commit

Permalink
Improve the Intertia Upgrade slowdown speed
Browse files Browse the repository at this point in the history
  • Loading branch information
Leclowndu93150 committed Sep 13, 2024
1 parent c66a39c commit 876c328
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mod_name=Modular Angel Ring

mod_license=All Rights Reserved

mod_version=1.4.0
mod_version=1.4.1

mod_group_id=com.leclowndu93150.modular_angelring

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ public static void stopDrift(PlayerTickEvent.Pre event) {
if (player.getAbilities().flying && getInertiaModifier(angelRingStack) && data.inertiaEnabled()) {
if (player.getPersistentData().getBoolean(PayloadActions.NO_KEYS_PRESSED)) {
if (motion.x != 0 || motion.z != 0) {
player.setDeltaMovement(0, motion.y, 0);
double slowdownFactor = 0.75; // Change this value for slower or faster slowdown (closer to 1 for slower).
player.setDeltaMovement(motion.x * slowdownFactor, motion.y, motion.z * slowdownFactor);
}
}
}
Expand Down

0 comments on commit 876c328

Please sign in to comment.