diff options
Diffstat (limited to 'nms-patches/PacketPlayOutNamedSoundEffect.patch')
-rw-r--r-- | nms-patches/PacketPlayOutNamedSoundEffect.patch | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/nms-patches/PacketPlayOutNamedSoundEffect.patch b/nms-patches/PacketPlayOutNamedSoundEffect.patch deleted file mode 100644 index 207de38a..00000000 --- a/nms-patches/PacketPlayOutNamedSoundEffect.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- a/net/minecraft/server/PacketPlayOutNamedSoundEffect.java -+++ b/net/minecraft/server/PacketPlayOutNamedSoundEffect.java -@@ -38,7 +38,17 @@ - } - - public void b(PacketDataSerializer packetdataserializer) throws IOException { -- packetdataserializer.d(SoundEffect.a.a((Object) this.a)); -+ // CraftBukkit start -+ if (packetdataserializer.version > 107) { -+ packetdataserializer.d(SoundEffect.a.a(this.a)); -+ } else { -+ int id = SoundEffect.a.a(this.a); -+ if (id >= SoundEffect.a.a(SoundEffect.a.get(new MinecraftKey("item.elytra.flying")))) { -+ id--; -+ } -+ packetdataserializer.d(id); -+ } -+ // CraftBukkit end - packetdataserializer.a((Enum) this.b); - packetdataserializer.writeInt(this.c); - packetdataserializer.writeInt(this.d); |