less shit (still worse)
This commit is contained in:
parent
b69173c767
commit
1d206a499d
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue