From 4ca942b169292591bc0dcea9d4d6772188bcf077 Mon Sep 17 00:00:00 2001 From: Zedadias Wick Date: Tue, 23 Apr 2019 15:41:42 +0100 Subject: [PATCH] #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. --- .../main/java/net/md_5/bungee/entitymap/EntityMap_1_14.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_14.java b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_14.java index cb5631fa..7c0ba80b 100644 --- a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_14.java +++ b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_14.java @@ -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;