Fix bad packet ID with bows

This commit is contained in:
David Marby 2013-06-27 10:14:34 +10:00 committed by md_5
parent a73b06eee3
commit f8d15f4c88

View File

@ -152,7 +152,8 @@ public class EntityMap
int type = packet[5] & 0xFF; int type = packet[5] & 0xFF;
if ( type == 60 || type == 90 ) if ( type == 60 || type == 90 )
{ {
if ( readInt( packet, 20 ) == oldId ) int index20 = readInt( packet, 20 );
if ( packet.length > 24 && index20 == oldId )
{ {
setInt( packet, 20, newId ); setInt( packet, 20, newId );
} }