fix: multiply NBS stereo X position by 2 so it sounds like in OpenNBS + ignore notes with 0 volume since they are pointless

This commit is contained in:
ChomeNS
2025-04-28 12:07:18 +07:00
parent 7b6f50cfab
commit a744c16f20
2 changed files with 4 additions and 2 deletions

View File

@@ -415,6 +415,8 @@ public class MusicPlayerPlugin implements Listener {
final double volume = note.volume + this.volume;
if (volume == 0.0) return;
if (shouldCustomPitch) {
bot.core.run(
"minecraft:execute as " +
@@ -471,7 +473,7 @@ public class MusicPlayerPlugin implements Listener {
else if (value == 100) xPos = 0;
else xPos = ((value - 100) * -1) / 100;
blockPosition = Vector3d.from(xPos, 0, 0);
blockPosition = Vector3d.from(xPos * 2, 0, 0);
} else {
final double originalPitch = note.originalPitch;