#1859: Rewrite second leash int

This commit is contained in:
md_5 2016-06-29 09:14:03 +10:00
parent a8c529eca5
commit 507a98f28f
3 changed files with 6 additions and 0 deletions

View File

@ -61,6 +61,8 @@ class EntityMap_1_10 extends EntityMap
switch ( packetId )
{
case 0x3A /* Attach Entity : PacketPlayOutAttachEntity */:
rewriteInt( packet, oldId, newId, readerIndex + packetIdLength + 4 );
break;
case 0x48 /* Collect Item : PacketPlayOutCollect */:
DefinedPacket.readVarInt( packet );
rewriteVarInt( packet, oldId, newId, packet.readerIndex() );

View File

@ -61,6 +61,8 @@ class EntityMap_1_9 extends EntityMap
switch ( packetId )
{
case 0x3A /* Attach Entity : PacketPlayOutAttachEntity */:
rewriteInt( packet, oldId, newId, readerIndex + packetIdLength + 4 );
break;
case 0x49 /* Collect Item : PacketPlayOutCollect */:
DefinedPacket.readVarInt( packet );
rewriteVarInt( packet, oldId, newId, packet.readerIndex() );

View File

@ -61,6 +61,8 @@ class EntityMap_1_9_4 extends EntityMap
switch ( packetId )
{
case 0x3A /* Attach Entity : PacketPlayOutAttachEntity */:
rewriteInt( packet, oldId, newId, readerIndex + packetIdLength + 4 );
break;
case 0x48 /* Collect Item : PacketPlayOutCollect */:
DefinedPacket.readVarInt( packet );
rewriteVarInt( packet, oldId, newId, packet.readerIndex() );