Skip to content

Commit

Permalink
Merge pull request #1630 from ManInMyVan/fix/offhand-noslow
Browse files Browse the repository at this point in the history
fix a noslow
  • Loading branch information
SamB440 authored Sep 3, 2024
2 parents 508daaa + 0c78830 commit d62755b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public void onPacketReceive(PacketReceiveEvent event) {
if (player == null) return;

if (!player.packetStateData.lastPacketWasTeleport && !player.packetStateData.lastPacketWasOnePointSeventeenDuplicate) {
if (player.packetStateData.isSlowedByUsingItem() && player.packetStateData.getSlowedByUsingItemSlot() != player.packetStateData.lastSlotSelected) {
if (player.packetStateData.isSlowedByUsingItem() && player.packetStateData.eatingHand != InteractionHand.OFF_HAND && player.packetStateData.getSlowedByUsingItemSlot() != player.packetStateData.lastSlotSelected) {
player.packetStateData.setSlowedByUsingItem(false);
player.checkManager.getPostPredictionCheck(NoSlowA.class).didSlotChangeLastTick = true;
}
Expand All @@ -196,7 +196,7 @@ public void onPacketReceive(PacketReceiveEvent event) {

if (player.packetStateData.lastSlotSelected != slot) {
// just assume they tick after this
if (!player.isTickingReliablyFor(3) && player.skippedTickInActualMovement) {
if (!player.isTickingReliablyFor(3) && player.skippedTickInActualMovement && player.packetStateData.eatingHand != InteractionHand.OFF_HAND) {
player.packetStateData.setSlowedByUsingItem(false);
}
}
Expand Down

0 comments on commit d62755b

Please sign in to comment.