diff options
author | Wyvest <wyvestbusiness@gmail.com> | 2023-07-01 23:50:41 +0900 |
---|---|---|
committer | Wyvest <wyvestbusiness@gmail.com> | 2023-07-01 23:50:41 +0900 |
commit | 3b502355eb3c792a2b9d8395877068c679892ea8 (patch) | |
tree | 12435fb182830cca4e1071cc416f4229f5a915e3 /src/main/java/cc/woverflow | |
parent | 4f36f7edb3622cac21ce3016299b87e969edc6f0 (diff) | |
download | Chatting-3b502355eb3c792a2b9d8395877068c679892ea8.tar.gz Chatting-3b502355eb3c792a2b9d8395877068c679892ea8.tar.bz2 Chatting-3b502355eb3c792a2b9d8395877068c679892ea8.zip |
Add descriptions to chatting configuration and adjust message animation speed calculation
Diffstat (limited to 'src/main/java/cc/woverflow')
-rw-r--r-- | src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java b/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java index e71b550..fa88145 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java +++ b/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java @@ -92,7 +92,7 @@ public abstract class GuiNewChatMixin_SmoothMessages { ChatTabs.INSTANCE.setHasCancelledAnimation(false); return; } - chatting$easeOutQuart = new EaseOutQuart(ChattingConfig.INSTANCE.getMessageSpeed() * 1000f, 0f, 1f, false); + chatting$easeOutQuart = new EaseOutQuart((1.0f - ChattingConfig.INSTANCE.getMessageSpeed()) * 1000f, 0f, 1f, false); } @ModifyVariable(method = "setChatLine", at = @At("STORE"), ordinal = 0) |