#2626: Correct entity metadata type values for 1.14-pre5.

Spawn Object packet now uses Entity IDs, not Object IDs, and is sent as a VarInt rather than Byte.
This commit is contained in:
Zedadias Wick 2019-04-23 15:41:42 +01:00 committed by md_5
parent 4cef6d1c25
commit 4ca942b169

View File

@ -94,11 +94,11 @@ class EntityMap_1_14 extends EntityMap
case 0x00 /* Spawn Object : PacketPlayOutSpawnEntity */:
DefinedPacket.readVarInt( packet );
DefinedPacket.readUUID( packet );
int type = packet.readUnsignedByte();
int type = DefinedPacket.readVarInt( packet );
if ( type == 60 || type == 90 || type == 91 )
if ( type == 2 || type == 93 || type == 68 ) // arrow, fishing_bobber or spectral_arrow
{
if ( type == 60 || type == 91 )
if ( type == 2 || type == 68 ) // arrow or spectral_arrow
{
oldId = oldId + 1;
newId = newId + 1;