Skip to content

Commit

Permalink
Merge pull request #1688 from ManInMyVan/post-slots
Browse files Browse the repository at this point in the history
check slot changes in post
  • Loading branch information
AoElite authored Aug 29, 2024
2 parents 1e46837 + 06fa4ba commit b3d780b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/ac/grim/grimac/checks/impl/post/PostCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerEntityAnimation;

import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

Expand Down Expand Up @@ -86,7 +85,7 @@ public void onPacketReceive(final PacketReceiveEvent event) {
}
post.clear();
sentFlying = false;
} else if (PLAYER_ABILITIES.equals(packetType)
} else if (PLAYER_ABILITIES.equals(packetType) || HELD_ITEM_CHANGE.equals(packetType)
|| INTERACT_ENTITY.equals(packetType) || PLAYER_BLOCK_PLACEMENT.equals(packetType)
|| USE_ITEM.equals(packetType) || PLAYER_DIGGING.equals(packetType)) {
if (sentFlying) post.add(event.getPacketType());
Expand Down

0 comments on commit b3d780b

Please sign in to comment.