shit shit

This commit is contained in:
Chayapak 2023-10-01 13:27:30 +07:00
parent 6a75527674
commit 8357525eaa

View file

@ -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);
}