Skip to content

Commit

Permalink
don't count stop sprinting as a start sprinting packet
Browse files Browse the repository at this point in the history
  • Loading branch information
ManInMyVan committed Dec 29, 2024
1 parent 105f0ec commit 5fbbaba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public SprintE(GrimPlayer player) {
@Override
public void onPacketReceive(PacketReceiveEvent event) {
if (event.getPacketType() == PacketType.Play.Client.ENTITY_ACTION) {
switch (new WrapperPlayClientEntityAction(event).getAction()) {
case START_SPRINTING, STOP_SPRINTING -> startedSprintingThisTick = true;
if (new WrapperPlayClientEntityAction(event).getAction() == WrapperPlayClientEntityAction.Action.START_SPRINTING) {
startedSprintingThisTick = true;
}
}
}
Expand Down

0 comments on commit 5fbbaba

Please sign in to comment.