Allow faster creative flight and relax instant bow timing #2

Merged
NotAlexNoyle merged 3 commits from agent/allow-faster-creative-flight into master 2026-07-22 19:37:37 -04:00
2 changed files with 10 additions and 3 deletions

No files matched your search

@@ -29,7 +29,7 @@ import fr.neatmonster.nocheatplus.utilities.TickTask;
*/
public class InstantBow extends Check {
private static final float maxTime = 800f;
private static final float maxTime = 750f;
/**
* Instantiates a new instant bow check.
@@ -69,7 +69,7 @@ public class ModelFlying {
*/
private boolean scaleSlowfallingEffect = false;
/**
/**
* Allow an extra amount to ascend speed, scaling with the riptiding effect
* level.
*/
@@ -118,6 +118,14 @@ public class ModelFlying {
scaleLevitationEffect(defaults.getScaleLevitationEffect()); // Config?
scaleSlowfallingEffect(defaults.getScaleSlowfallingEffect());
scaleRiptidingEffect(defaults.getScaleRiptidingEffect());
// Only the resolved creative game-mode model gets the extra allowance.
// The first creative model is the defaults template; doubling that would
// also leak into survival/adventure allow-flight models.
if ("gamemode.creative".equals(id) && defaults.getId() != null) {
horizontalModSpeed(horizontalModSpeed * 2.0);
verticalAscendModSpeed(verticalAscendModSpeed * 2.0);
}
}
/**
@@ -216,7 +224,6 @@ public class ModelFlying {
return scaleRiptidingEffect;
}
public ModelFlying horizontalModSpeed(double horizontalModSpeed) {
checkLocked();
this.horizontalModSpeed = horizontalModSpeed;