Skip to content

Commit f529eaa

Browse files
committed
1.21.11 changes
1 parent 7d72ed6 commit f529eaa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/main/java/com/lambda/mixin/render/HeldItemRendererMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private float modifyEquipProgressMainHand(float value) {
6464
mainHand = currentStack;
6565
}
6666

67-
float progress = config.getOldAnimations() ? 1 : (float) Math.pow(client.player.getAttackCooldownProgress(1), 3);
67+
float progress = config.getOldAnimations() ? 1 : (float) Math.pow(client.player.getHandEquippingProgress(1), 3);
6868

6969
return (ItemStack.areEqual(mainHand, currentStack) ? progress : 0) - equipProgressMainHand;
7070
}

src/main/kotlin/com/lambda/interaction/managers/rotating/RotationRequest.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ data class RotationRequest(
4949
var age = 0
5050
override val nowOrNothing = false
5151

52-
override val done: Boolean get() {
53-
return RotationManager.activeRotation.dist(rotation.value ?: return false) <= 0.001
54-
}
52+
override val done: Boolean get() = RotationManager.activeRotation.dist(rotation.value ?: return false) <= 0.001
5553

5654
override fun submit(queueIfMismatchedStage: Boolean): RotationRequest =
5755
RotationManager.request(this, queueIfMismatchedStage)

0 commit comments

Comments
 (0)