From 8357525eaa6b16985728149014ac7ca7fcd73712 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 1 Oct 2023 13:27:30 +0700 Subject: [PATCH] shit shit --- .../chayapak/chomens_bot/plugins/MusicPlayerPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 5aac945..e90bc7d 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,8 +323,8 @@ public class MusicPlayerPlugin extends Bot.Listener { // this uses the MIDI PITCH to calculate final float pitch = note.originalPitch; - if (pitch > 93) blockPosition = -(float) (pitch / -93) - 2; // right - else if (pitch < 10) blockPosition = (pitch / 10) - 2; // left + if (pitch > 80) blockPosition = -(float) (pitch / -85) - 2; // right + else if (pitch < 20) blockPosition = (pitch / 15) - 2; // left blockPosition = MathUtilities.clamp(blockPosition, -0.4F, 0.4F); }