diff options
author | md_5 <git@md-5.net> | 2017-11-14 09:57:46 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-11-14 09:57:46 +1100 |
commit | 82f3b02c675ded7f1c70f84468717a37dfdcf27c (patch) | |
tree | dd5649b8930f2c0faf51ac220e918c40f4bfbe58 | |
parent | adbfc1f98ab0dc27b470d62e3b57f802813caeec (diff) | |
download | craftbukkit-82f3b02c675ded7f1c70f84468717a37dfdcf27c.tar craftbukkit-82f3b02c675ded7f1c70f84468717a37dfdcf27c.tar.gz craftbukkit-82f3b02c675ded7f1c70f84468717a37dfdcf27c.tar.lz craftbukkit-82f3b02c675ded7f1c70f84468717a37dfdcf27c.tar.xz craftbukkit-82f3b02c675ded7f1c70f84468717a37dfdcf27c.zip |
SPIGOT-1891: Player.playNote should use RECORDS category
This is what NoteBlock.play etc uses.
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index b400b535..3cfe5ac4 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -283,7 +283,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { } float f = (float) Math.pow(2.0D, (note - 12.0D) / 12.0D); - getHandle().playerConnection.sendPacket(new PacketPlayOutNamedSoundEffect(CraftSound.getSoundEffect("block.note." + instrumentName), net.minecraft.server.SoundCategory.MUSIC, loc.getBlockX(), loc.getBlockY(), loc.getBlockZ(), 3.0f, f)); + getHandle().playerConnection.sendPacket(new PacketPlayOutNamedSoundEffect(CraftSound.getSoundEffect("block.note." + instrumentName), net.minecraft.server.SoundCategory.RECORDS, loc.getBlockX(), loc.getBlockY(), loc.getBlockZ(), 3.0f, f)); } @Override @@ -324,7 +324,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { break; } float f = (float) Math.pow(2.0D, (note.getId() - 12.0D) / 12.0D); - getHandle().playerConnection.sendPacket(new PacketPlayOutNamedSoundEffect(CraftSound.getSoundEffect("block.note." + instrumentName), net.minecraft.server.SoundCategory.MUSIC, loc.getBlockX(), loc.getBlockY(), loc.getBlockZ(), 3.0f, f)); + getHandle().playerConnection.sendPacket(new PacketPlayOutNamedSoundEffect(CraftSound.getSoundEffect("block.note." + instrumentName), net.minecraft.server.SoundCategory.RECORDS, loc.getBlockX(), loc.getBlockY(), loc.getBlockZ(), 3.0f, f)); } @Override |