aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/features/ItemAnimations.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/dulkirmod/features/ItemAnimations.kt')
-rw-r--r--src/main/kotlin/dulkirmod/features/ItemAnimations.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/dulkirmod/features/ItemAnimations.kt b/src/main/kotlin/dulkirmod/features/ItemAnimations.kt
index a86e947..7e9b85d 100644
--- a/src/main/kotlin/dulkirmod/features/ItemAnimations.kt
+++ b/src/main/kotlin/dulkirmod/features/ItemAnimations.kt
@@ -66,7 +66,7 @@ object ItemAnimations {
* Directly referenced by the ItemRendereMixin. If enabled will scale the potion drink animation.
* Returns whether custom animation was performed.
*/
- fun rotationlessDrink(clientPlayer : AbstractClientPlayer, partialTicks : Float): Boolean {
+ fun rotationlessDrink(clientPlayer: AbstractClientPlayer, partialTicks: Float): Boolean {
if (!config.customAnimations || config.drinkingSelector != 1) return false
val f: Float = clientPlayer.itemInUseCount.toFloat() - partialTicks + 1.0f
val f1: Float = f / mc.thePlayer.heldItem.maxItemUseDuration.toFloat()