From 336efafbd3e023cb5326678fdfca9654edac9781 Mon Sep 17 00:00:00 2001 From: cyramek Date: Fri, 29 Nov 2024 18:46:47 +0100 Subject: [PATCH] limit jump possibilities --- .../predictionengine/predictions/PredictionEngineNormal.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/ac/grim/grimac/predictionengine/predictions/PredictionEngineNormal.java b/src/main/java/ac/grim/grimac/predictionengine/predictions/PredictionEngineNormal.java index 3b39e7f49d..be83361ff1 100644 --- a/src/main/java/ac/grim/grimac/predictionengine/predictions/PredictionEngineNormal.java +++ b/src/main/java/ac/grim/grimac/predictionengine/predictions/PredictionEngineNormal.java @@ -37,6 +37,10 @@ public static void staticVectorEndOfTick(GrimPlayer player, Vector vector) { @Override public void addJumpsToPossibilities(GrimPlayer player, Set existingVelocities) { + if (player.supportsEndTick() && !player.packetStateData.knownInput.jump()) { + return; + } + for (VectorData vector : new HashSet<>(existingVelocities)) { Vector jump = vector.vector.clone();