From 1d206a499d44d5127999aecdcc3eb24e743d7ad5 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 1 Oct 2023 08:40:49 +0700 Subject: [PATCH] less shit (still worse) --- .../chayapak/chomens_bot/plugins/MusicPlayerPlugin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java index 2a3e4cd..2540f65 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java @@ -323,10 +323,10 @@ public class MusicPlayerPlugin extends Bot.Listener { // this uses the pitch to calculate final float pitch = note.pitch; - if (pitch > 5) blockPosition = -(float) (pitch / -5) - 2; // left - else if (pitch < 5) blockPosition = (pitch / 5) - 2; // right + if (pitch > 8) blockPosition = -(float) (pitch / -8) - 2; // left + else if (pitch < 2) blockPosition = (pitch / 2) - 2; // right - blockPosition = MathUtilities.clamp(blockPosition, -0.4F, 0.4F); + blockPosition = MathUtilities.clamp(blockPosition, -0.5F, 0.5F); } key += 33;