From 465e06b880b517ea2a9807ef69902eec7f288058 Mon Sep 17 00:00:00 2001 From: Alexander Noyle Date: Fri, 24 Jul 2026 13:20:47 -0400 Subject: [PATCH] Allow double-speed spectator flight --- .../nocheatplus/checks/moving/model/ModelFlying.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/model/ModelFlying.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/model/ModelFlying.java index 81f393428..e86663f72 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/model/ModelFlying.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/model/ModelFlying.java @@ -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; } -} +} \ No newline at end of file -- 2.47.3