Allow double-speed creative and spectator flight #3

Merged
NotAlexNoyle merged 1 commits from agent/allow-faster-creative-spectator-flight into master 2026-07-24 13:23:02 -04:00
@@ -119,10 +119,10 @@ public class ModelFlying {
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) {
// Only resolved creative and spectator game-mode models get 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) || "gamemode.spectator".equals(id)) {
horizontalModSpeed(horizontalModSpeed * 2.0);
verticalAscendModSpeed(verticalAscendModSpeed * 2.0);
}
@@ -289,4 +289,4 @@ public class ModelFlying {
this.scaleRiptidingEffect = scaleRiptidingEffect;
return this;
}
}
}