3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-03 14:50:30 +01:00
Dieser Commit ist enthalten in:
Myles 2016-03-07 22:21:47 +00:00
Commit 3780210f76

Datei anzeigen

@ -101,8 +101,10 @@ public class OutgoingTransformer {
} }
if (packet == PacketType.PLAY_EFFECT) { if (packet == PacketType.PLAY_EFFECT) {
int effectid = input.readInt(); int effectid = input.readInt();
if (effectid >= 1000 && effectid < 2000) //Sound effect if (effectid >= 1000 && effectid < 2000 && effectid != 1005) //Sound effect
throw new CancelException(); throw new CancelException();
if (effectid == 1005) //Fix jukebox
effectid = 1010;
output.writeInt(effectid); output.writeInt(effectid);
} }
if (packet == PacketType.PLAY_ATTACH_ENTITY) { if (packet == PacketType.PLAY_ATTACH_ENTITY) {