Move 0x13 to clientbound only
This commit is contained in:
parent
230cca0f9e
commit
17fc120e07
@ -72,6 +72,21 @@ public class EntityMap
|
||||
packet.setInt( packetIdLength + 4, serverEntityId );
|
||||
}
|
||||
}
|
||||
if ( packetId == 0x13 )
|
||||
{
|
||||
int count = packet.getByte( packetIdLength );
|
||||
for ( int i = 0; i < count; i++ )
|
||||
{
|
||||
int readId = packet.getInt( packetIdLength + 1 + i * 4);
|
||||
if ( readId == serverEntityId )
|
||||
{
|
||||
packet.setInt( packetIdLength + 1 + i * 4, clientEntityId );
|
||||
} else if ( readId == clientEntityId )
|
||||
{
|
||||
packet.setInt( packetIdLength + 1 + i * 4, serverEntityId );
|
||||
}
|
||||
}
|
||||
}
|
||||
packet.readerIndex( readerIndex );
|
||||
}
|
||||
|
||||
@ -105,20 +120,6 @@ public class EntityMap
|
||||
packet.writeBytes( data );
|
||||
data.release();
|
||||
}
|
||||
} else if ( packetId == 0x13 )
|
||||
{
|
||||
int count = packet.getByte( packetIdLength );
|
||||
for ( int i = 0; i < count; i++ )
|
||||
{
|
||||
int readId = packet.getInt( packetIdLength + 1 + i * 4);
|
||||
if ( readId == serverEntityId )
|
||||
{
|
||||
packet.setInt( packetIdLength + 1 + i * 4, clientEntityId );
|
||||
} else if ( readId == clientEntityId )
|
||||
{
|
||||
packet.setInt( packetIdLength + 1 + i * 4, serverEntityId );
|
||||
}
|
||||
}
|
||||
}
|
||||
packet.readerIndex( readerIndex );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user