From 2b29d27b0d2f06e358b38f0c740fac744db6215f Mon Sep 17 00:00:00 2001 From: Mats Date: Mon, 7 Mar 2016 23:04:24 +0100 Subject: [PATCH] Fix jukebox --- .../myles/ViaVersion/transformers/OutgoingTransformer.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/us/myles/ViaVersion/transformers/OutgoingTransformer.java b/src/main/java/us/myles/ViaVersion/transformers/OutgoingTransformer.java index e3dd9e96e..3000a628b 100644 --- a/src/main/java/us/myles/ViaVersion/transformers/OutgoingTransformer.java +++ b/src/main/java/us/myles/ViaVersion/transformers/OutgoingTransformer.java @@ -3,6 +3,7 @@ package us.myles.ViaVersion.transformers; import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBufInputStream; import io.netty.buffer.ByteBufOutputStream; +import org.bukkit.Bukkit; import org.bukkit.entity.EntityType; import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; @@ -106,8 +107,11 @@ public class OutgoingTransformer { } if (packet == PacketType.PLAY_EFFECT) { int effectid = input.readInt(); - if (effectid >= 1000 && effectid < 2000) //Sound effect + + if (effectid >= 1000 && effectid < 2000 && effectid != 1005) //Sound effect throw new CancelException(); + if (effectid == 1005) + effectid = 1010; output.writeInt(effectid); } if (packet == PacketType.PLAY_ATTACH_ENTITY) {