Skip to content

Commit

Permalink
Merge pull request #1839 from Cyramek/limit-jump-possibilities
Browse files Browse the repository at this point in the history
[1.21.3] Limit jump possibilities
  • Loading branch information
SamB440 authored Nov 29, 2024
2 parents 782f8f8 + 336efaf commit 7f08388
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ public static void staticVectorEndOfTick(GrimPlayer player, Vector vector) {

@Override
public void addJumpsToPossibilities(GrimPlayer player, Set<VectorData> existingVelocities) {
if (player.supportsEndTick() && !player.packetStateData.knownInput.jump()) {
return;
}

for (VectorData vector : new HashSet<>(existingVelocities)) {
Vector jump = vector.vector.clone();

Expand Down

0 comments on commit 7f08388

Please sign in to comment.