Skip to content

Commit c173dff

Browse files
authored
Fix the spear attack animation not working properly (#5956)
1 parent 3a26479 commit c173dff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/meteordevelopment/meteorclient/mixin/HeldItemRendererMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ private boolean modifySkipSwapAnimation(boolean original) {
7171

7272
@ModifyArg(method = "updateHeldItems", at = @At(value = "INVOKE", target = "Lnet/minecraft/util/math/MathHelper;clamp(FFF)F", ordinal = 2), index = 0)
7373
private float modifyEquipProgressMainhand(float value) {
74-
float f = mc.player.getAttackCooldownProgress(1f);
74+
float f = mc.player.getHandEquippingProgress(1f);
7575
float modified = Modules.get().get(HandView.class).oldAnimations() ? 1 : f * f * f;
7676

7777
return (shouldSkipHandAnimationOnSwap(mainHand, mc.player.getMainHandStack()) ? modified : 0) - equipProgressMainHand;

0 commit comments

Comments
 (0)