#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:
parent
4cef6d1c25
commit
4ca942b169
@ -94,11 +94,11 @@ class EntityMap_1_14 extends EntityMap
|
|||||||
case 0x00 /* Spawn Object : PacketPlayOutSpawnEntity */:
|
case 0x00 /* Spawn Object : PacketPlayOutSpawnEntity */:
|
||||||
DefinedPacket.readVarInt( packet );
|
DefinedPacket.readVarInt( packet );
|
||||||
DefinedPacket.readUUID( 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;
|
oldId = oldId + 1;
|
||||||
newId = newId + 1;
|
newId = newId + 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user