Update to 1.6.2
This commit is contained in:
parent
0c56945ffd
commit
10e81041b2
@ -29,8 +29,8 @@ import net.md_5.bungee.protocol.skip.PacketReader;
|
||||
public class Vanilla implements Protocol
|
||||
{
|
||||
|
||||
public static final byte PROTOCOL_VERSION = 73;
|
||||
public static final String GAME_VERSION = "1.6.1";
|
||||
public static final byte PROTOCOL_VERSION = 74;
|
||||
public static final String GAME_VERSION = "1.6.2";
|
||||
@Getter
|
||||
private static final Vanilla instance = new Vanilla();
|
||||
/*========================================================================*/
|
||||
@ -364,6 +364,10 @@ public class Vanilla implements Protocol
|
||||
{
|
||||
INT, SHORT, INT, BYTE, SHORT_BYTE
|
||||
};
|
||||
opCodes[0x84] = new OpCode[]
|
||||
{
|
||||
BYTE, INT, INT, INT
|
||||
};
|
||||
opCodes[0xC3] = new OpCode[]
|
||||
{
|
||||
SHORT, SHORT, INT_BYTE
|
||||
|
@ -13,9 +13,6 @@ import lombok.ToString;
|
||||
public class Packet2CEntityProperties extends DefinedPacket
|
||||
{
|
||||
|
||||
private int entityId;
|
||||
private Map<String, Double> data = new HashMap<>();
|
||||
|
||||
public Packet2CEntityProperties()
|
||||
{
|
||||
super( 0x2C );
|
||||
@ -24,24 +21,24 @@ public class Packet2CEntityProperties extends DefinedPacket
|
||||
@Override
|
||||
public void read(ByteBuf buf)
|
||||
{
|
||||
entityId = buf.readInt();
|
||||
buf.readInt();
|
||||
int recordCount = buf.readInt();
|
||||
for ( int i = 0; i < recordCount; i++ )
|
||||
{
|
||||
data.put( readString( buf ), buf.readDouble() );
|
||||
readString( buf );
|
||||
buf.readDouble();
|
||||
short size = buf.readShort();
|
||||
for ( short s = 0; s < size; s++ )
|
||||
{
|
||||
buf.skipBytes( 25 ); // long, long, double, byte
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(ByteBuf buf)
|
||||
{
|
||||
buf.writeInt( entityId );
|
||||
buf.writeInt( data.size() );
|
||||
for ( Map.Entry<String, Double> entry : data.entrySet() )
|
||||
{
|
||||
writeString( entry.getKey(), buf );
|
||||
buf.writeDouble( entry.getValue() );
|
||||
}
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user