mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 17:52:02 -07:00
Fix note block sound property on player heads (#9158)
This commit is contained in:
@@ -9,7 +9,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
--- a/src/main/java/org/bukkit/event/block/NotePlayEvent.java
|
||||
+++ b/src/main/java/org/bukkit/event/block/NotePlayEvent.java
|
||||
@@ -0,0 +0,0 @@ public class NotePlayEvent extends BlockEvent implements Cancellable {
|
||||
|
||||
/**
|
||||
* Overrides the {@link Instrument} to be used.
|
||||
+ * <p>
|
||||
+ * Only works when the note block isn't under a player head.
|
||||
+ * For this specific case the 'note_block_sound' property of the
|
||||
+ * player head state takes the priority.
|
||||
*
|
||||
* @param instrument the Instrument. Has no effect if null.
|
||||
- * @deprecated no effect on newer Minecraft versions
|
||||
|
Reference in New Issue
Block a user