Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix volume being ignored in NoteblockSongPlayer #81

Merged
merged 2 commits into from
Dec 12, 2021

Conversation

LaserSlime
Copy link
Contributor

I don't know why it plays the note twice in the first place, but unlike ChannelMode#play(), Player#playNote() completely ignores the volume so it should be removed.
If this was intentional there should at least be a way to toggle it off.

@koca2000
Copy link
Owner

For some unknown reason the original author of NoteBlockAPI done it this way and since there wasn't any documentation I left it as it is. I took a look to the Spigot source code and there is no important difference between the playSound and playNote so I think playNote may be removed as you did. Please remove also key variable calculation since it is unused now.

@koca2000 koca2000 merged commit a3cc078 into koca2000:master Dec 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants