package protocolsupport.protocol.packet.middle.clientbound.play;

import io.netty.buffer.ByteBuf;
import protocolsupport.protocol.packet.middle.ClientBoundMiddlePacket;
import protocolsupport.protocol.serializer.VarNumberSerializer;

public abstract class MiddleWorldSound extends ClientBoundMiddlePacket {

	protected int id;
	protected int category;
	protected String parrotedEntityType;
	protected int x;
	protected int y;
	protected int z;
	protected float volume;
	protected float pitch;

	@Override
	public void readFromServerData(ByteBuf serverdata) {
		id = VarNumberSerializer.readVarInt(serverdata);
		category = VarNumberSerializer.readVarInt(serverdata);
		x = serverdata.readInt();
		y = serverdata.readInt();
		z = serverdata.readInt();
		volume = serverdata.readFloat();
		pitch = serverdata.readFloat();
	}

}

package protocolsupport.protocol.packet.middle.clientbound.play;

import io.netty.buffer.ByteBuf;
import protocolsupport.api.ProtocolType;
import protocolsupport.api.ProtocolVersion;
import protocolsupport.protocol.packet.middle.ClientBoundMiddlePacket;
import protocolsupport.protocol.serializer.StringSerializer;
import protocolsupport.protocol.serializer.VarNumberSerializer;

public abstract class MiddleWorldSound extends ClientBoundMiddlePacket {

	protected int id;
	protected int category;
	protected String parrotedEntityType;
	protected int x;
	protected int y;
	protected int z;
	protected float volume;
	protected float pitch;

	@Override
	public void readFromServerData(ByteBuf serverdata) {
		category = VarNumberSerializer.readVarInt(serverdata);
		id = VarNumberSerializer.readVarInt(serverdata);
		parrotedEntityType = StringSerializer.readString(serverdata, ProtocolVersion.getLatest(ProtocolType.PC));
		x = serverdata.readInt();
		y = serverdata.readInt();
		z = serverdata.readInt();
		volume = serverdata.readFloat();
		pitch = serverdata.readFloat();
	}

}

--- 
+++ 
@@ -1,10 +1,7 @@
 package protocolsupport.protocol.packet.middle.clientbound.play;
 
 import io.netty.buffer.ByteBuf;
-import protocolsupport.api.ProtocolType;
-import protocolsupport.api.ProtocolVersion;
 import protocolsupport.protocol.packet.middle.ClientBoundMiddlePacket;
-import protocolsupport.protocol.serializer.StringSerializer;
 import protocolsupport.protocol.serializer.VarNumberSerializer;
 
 public abstract class MiddleWorldSound extends ClientBoundMiddlePacket {
@@ -20,9 +17,8 @@
 
 	@Override
 	public void readFromServerData(ByteBuf serverdata) {
+		id = VarNumberSerializer.readVarInt(serverdata);
 		category = VarNumberSerializer.readVarInt(serverdata);
-		id = VarNumberSerializer.readVarInt(serverdata);
-		parrotedEntityType = StringSerializer.readString(serverdata, ProtocolVersion.getLatest(ProtocolType.PC));
 		x = serverdata.readInt();
 		y = serverdata.readInt();
 		z = serverdata.readInt();
Update sound changes (mojang rewrted the changes that they done before)