#1859: Fix EntityMap for leads.
This commit is contained in:
parent
e3869fea18
commit
c5ac5a0d17
@ -34,6 +34,7 @@ class EntityMap_1_10 extends EntityMap
|
|||||||
addRewrite( 0x34, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Head Look : PacketPlayOutEntityHeadRotation
|
addRewrite( 0x34, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Head Look : PacketPlayOutEntityHeadRotation
|
||||||
addRewrite( 0x36, ProtocolConstants.Direction.TO_CLIENT, true ); // Camera : PacketPlayOutCamera
|
addRewrite( 0x36, ProtocolConstants.Direction.TO_CLIENT, true ); // Camera : PacketPlayOutCamera
|
||||||
addRewrite( 0x39, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Metadata : PacketPlayOutEntityMetadata
|
addRewrite( 0x39, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Metadata : PacketPlayOutEntityMetadata
|
||||||
|
addRewrite( 0x3A, ProtocolConstants.Direction.TO_CLIENT, true ); // Attach Entity : PacketPlayOutAttachEntity
|
||||||
addRewrite( 0x3B, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Velocity : PacketPlayOutEntityVelocity
|
addRewrite( 0x3B, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Velocity : PacketPlayOutEntityVelocity
|
||||||
addRewrite( 0x3C, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Equipment : PacketPlayOutEntityEquipment
|
addRewrite( 0x3C, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Equipment : PacketPlayOutEntityEquipment
|
||||||
addRewrite( 0x40, ProtocolConstants.Direction.TO_CLIENT, true ); // Attach Entity : PacketPlayOutMount
|
addRewrite( 0x40, ProtocolConstants.Direction.TO_CLIENT, true ); // Attach Entity : PacketPlayOutMount
|
||||||
@ -59,6 +60,7 @@ class EntityMap_1_10 extends EntityMap
|
|||||||
int jumpIndex = packet.readerIndex();
|
int jumpIndex = packet.readerIndex();
|
||||||
switch ( packetId )
|
switch ( packetId )
|
||||||
{
|
{
|
||||||
|
case 0x3A /* Attach Entity : PacketPlayOutAttachEntity */:
|
||||||
case 0x48 /* Collect Item : PacketPlayOutCollect */:
|
case 0x48 /* Collect Item : PacketPlayOutCollect */:
|
||||||
DefinedPacket.readVarInt( packet );
|
DefinedPacket.readVarInt( packet );
|
||||||
rewriteVarInt( packet, oldId, newId, packet.readerIndex() );
|
rewriteVarInt( packet, oldId, newId, packet.readerIndex() );
|
||||||
|
@ -34,6 +34,7 @@ class EntityMap_1_9 extends EntityMap
|
|||||||
addRewrite( 0x34, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Head Look : PacketPlayOutEntityHeadRotation
|
addRewrite( 0x34, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Head Look : PacketPlayOutEntityHeadRotation
|
||||||
addRewrite( 0x36, ProtocolConstants.Direction.TO_CLIENT, true ); // Camera : PacketPlayOutCamera
|
addRewrite( 0x36, ProtocolConstants.Direction.TO_CLIENT, true ); // Camera : PacketPlayOutCamera
|
||||||
addRewrite( 0x39, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Metadata : PacketPlayOutEntityMetadata
|
addRewrite( 0x39, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Metadata : PacketPlayOutEntityMetadata
|
||||||
|
addRewrite( 0x3A, ProtocolConstants.Direction.TO_CLIENT, true ); // Attach Entity : PacketPlayOutAttachEntity
|
||||||
addRewrite( 0x3B, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Velocity : PacketPlayOutEntityVelocity
|
addRewrite( 0x3B, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Velocity : PacketPlayOutEntityVelocity
|
||||||
addRewrite( 0x3C, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Equipment : PacketPlayOutEntityEquipment
|
addRewrite( 0x3C, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Equipment : PacketPlayOutEntityEquipment
|
||||||
addRewrite( 0x40, ProtocolConstants.Direction.TO_CLIENT, true ); // Attach Entity : PacketPlayOutMount
|
addRewrite( 0x40, ProtocolConstants.Direction.TO_CLIENT, true ); // Attach Entity : PacketPlayOutMount
|
||||||
@ -59,6 +60,7 @@ class EntityMap_1_9 extends EntityMap
|
|||||||
int jumpIndex = packet.readerIndex();
|
int jumpIndex = packet.readerIndex();
|
||||||
switch ( packetId )
|
switch ( packetId )
|
||||||
{
|
{
|
||||||
|
case 0x3A /* Attach Entity : PacketPlayOutAttachEntity */:
|
||||||
case 0x49 /* Collect Item : PacketPlayOutCollect */:
|
case 0x49 /* Collect Item : PacketPlayOutCollect */:
|
||||||
DefinedPacket.readVarInt( packet );
|
DefinedPacket.readVarInt( packet );
|
||||||
rewriteVarInt( packet, oldId, newId, packet.readerIndex() );
|
rewriteVarInt( packet, oldId, newId, packet.readerIndex() );
|
||||||
|
@ -34,6 +34,7 @@ class EntityMap_1_9_4 extends EntityMap
|
|||||||
addRewrite( 0x34, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Head Look : PacketPlayOutEntityHeadRotation
|
addRewrite( 0x34, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Head Look : PacketPlayOutEntityHeadRotation
|
||||||
addRewrite( 0x36, ProtocolConstants.Direction.TO_CLIENT, true ); // Camera : PacketPlayOutCamera
|
addRewrite( 0x36, ProtocolConstants.Direction.TO_CLIENT, true ); // Camera : PacketPlayOutCamera
|
||||||
addRewrite( 0x39, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Metadata : PacketPlayOutEntityMetadata
|
addRewrite( 0x39, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Metadata : PacketPlayOutEntityMetadata
|
||||||
|
addRewrite( 0x3A, ProtocolConstants.Direction.TO_CLIENT, true ); // Attach Entity : PacketPlayOutAttachEntity
|
||||||
addRewrite( 0x3B, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Velocity : PacketPlayOutEntityVelocity
|
addRewrite( 0x3B, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Velocity : PacketPlayOutEntityVelocity
|
||||||
addRewrite( 0x3C, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Equipment : PacketPlayOutEntityEquipment
|
addRewrite( 0x3C, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Equipment : PacketPlayOutEntityEquipment
|
||||||
addRewrite( 0x40, ProtocolConstants.Direction.TO_CLIENT, true ); // Attach Entity : PacketPlayOutMount
|
addRewrite( 0x40, ProtocolConstants.Direction.TO_CLIENT, true ); // Attach Entity : PacketPlayOutMount
|
||||||
@ -59,6 +60,7 @@ class EntityMap_1_9_4 extends EntityMap
|
|||||||
int jumpIndex = packet.readerIndex();
|
int jumpIndex = packet.readerIndex();
|
||||||
switch ( packetId )
|
switch ( packetId )
|
||||||
{
|
{
|
||||||
|
case 0x3A /* Attach Entity : PacketPlayOutAttachEntity */:
|
||||||
case 0x48 /* Collect Item : PacketPlayOutCollect */:
|
case 0x48 /* Collect Item : PacketPlayOutCollect */:
|
||||||
DefinedPacket.readVarInt( packet );
|
DefinedPacket.readVarInt( packet );
|
||||||
rewriteVarInt( packet, oldId, newId, packet.readerIndex() );
|
rewriteVarInt( packet, oldId, newId, packet.readerIndex() );
|
||||||
|
Loading…
Reference in New Issue
Block a user