diff --git a/src/main/java/ac/grim/grimac/events/packets/PacketPlayerDigging.java b/src/main/java/ac/grim/grimac/events/packets/PacketPlayerDigging.java index 9c9b259fc4..780d749c12 100644 --- a/src/main/java/ac/grim/grimac/events/packets/PacketPlayerDigging.java +++ b/src/main/java/ac/grim/grimac/events/packets/PacketPlayerDigging.java @@ -123,6 +123,16 @@ public static void handleUseItem(GrimPlayer player, ItemStack item, InteractionH player.packetStateData.slowedByUsingItem = false; } + if (material == ItemTypes.SPYGLASS && player.getClientVersion().isNewerThanOrEquals(ClientVersion.V_1_17)) { + player.packetStateData.slowedByUsingItem = true; + player.packetStateData.eatingHand = hand; + } + + if (material == ItemTypes.GOAT_HORN && player.getClientVersion().isNewerThanOrEquals(ClientVersion.V_1_19)) { + player.packetStateData.slowedByUsingItem = true; + player.packetStateData.eatingHand = hand; + } + // Only 1.8 and below players can block with swords if (material.hasAttribute(ItemTypes.ItemAttribute.SWORD)) { if (player.getClientVersion().isOlderThanOrEquals(ClientVersion.V_1_8))