From c5ac5a0d17b30b7a52dd355b203f64dddbe6d9a9 Mon Sep 17 00:00:00 2001 From: misterT2525 Date: Mon, 27 Jun 2016 12:49:05 +0900 Subject: [PATCH] #1859: Fix EntityMap for leads. --- .../src/main/java/net/md_5/bungee/entitymap/EntityMap_1_10.java | 2 ++ .../src/main/java/net/md_5/bungee/entitymap/EntityMap_1_9.java | 2 ++ .../main/java/net/md_5/bungee/entitymap/EntityMap_1_9_4.java | 2 ++ 3 files changed, 6 insertions(+) diff --git a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_10.java b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_10.java index 8ee39920..1489839b 100644 --- a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_10.java +++ b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_10.java @@ -34,6 +34,7 @@ class EntityMap_1_10 extends EntityMap addRewrite( 0x34, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Head Look : PacketPlayOutEntityHeadRotation addRewrite( 0x36, ProtocolConstants.Direction.TO_CLIENT, true ); // Camera : PacketPlayOutCamera addRewrite( 0x39, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Metadata : PacketPlayOutEntityMetadata + addRewrite( 0x3A, ProtocolConstants.Direction.TO_CLIENT, true ); // Attach Entity : PacketPlayOutAttachEntity addRewrite( 0x3B, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Velocity : PacketPlayOutEntityVelocity addRewrite( 0x3C, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Equipment : PacketPlayOutEntityEquipment addRewrite( 0x40, ProtocolConstants.Direction.TO_CLIENT, true ); // Attach Entity : PacketPlayOutMount @@ -59,6 +60,7 @@ class EntityMap_1_10 extends EntityMap int jumpIndex = packet.readerIndex(); switch ( packetId ) { + case 0x3A /* Attach Entity : PacketPlayOutAttachEntity */: case 0x48 /* Collect Item : PacketPlayOutCollect */: DefinedPacket.readVarInt( packet ); rewriteVarInt( packet, oldId, newId, packet.readerIndex() ); diff --git a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_9.java b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_9.java index f6eb9723..628e8719 100644 --- a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_9.java +++ b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_9.java @@ -34,6 +34,7 @@ class EntityMap_1_9 extends EntityMap addRewrite( 0x34, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Head Look : PacketPlayOutEntityHeadRotation addRewrite( 0x36, ProtocolConstants.Direction.TO_CLIENT, true ); // Camera : PacketPlayOutCamera addRewrite( 0x39, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Metadata : PacketPlayOutEntityMetadata + addRewrite( 0x3A, ProtocolConstants.Direction.TO_CLIENT, true ); // Attach Entity : PacketPlayOutAttachEntity addRewrite( 0x3B, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Velocity : PacketPlayOutEntityVelocity addRewrite( 0x3C, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Equipment : PacketPlayOutEntityEquipment addRewrite( 0x40, ProtocolConstants.Direction.TO_CLIENT, true ); // Attach Entity : PacketPlayOutMount @@ -59,6 +60,7 @@ class EntityMap_1_9 extends EntityMap int jumpIndex = packet.readerIndex(); switch ( packetId ) { + case 0x3A /* Attach Entity : PacketPlayOutAttachEntity */: case 0x49 /* Collect Item : PacketPlayOutCollect */: DefinedPacket.readVarInt( packet ); rewriteVarInt( packet, oldId, newId, packet.readerIndex() ); diff --git a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_9_4.java b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_9_4.java index c7442bea..add9dfa6 100644 --- a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_9_4.java +++ b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_9_4.java @@ -34,6 +34,7 @@ class EntityMap_1_9_4 extends EntityMap addRewrite( 0x34, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Head Look : PacketPlayOutEntityHeadRotation addRewrite( 0x36, ProtocolConstants.Direction.TO_CLIENT, true ); // Camera : PacketPlayOutCamera addRewrite( 0x39, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Metadata : PacketPlayOutEntityMetadata + addRewrite( 0x3A, ProtocolConstants.Direction.TO_CLIENT, true ); // Attach Entity : PacketPlayOutAttachEntity addRewrite( 0x3B, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Velocity : PacketPlayOutEntityVelocity addRewrite( 0x3C, ProtocolConstants.Direction.TO_CLIENT, true ); // Entity Equipment : PacketPlayOutEntityEquipment addRewrite( 0x40, ProtocolConstants.Direction.TO_CLIENT, true ); // Attach Entity : PacketPlayOutMount @@ -59,6 +60,7 @@ class EntityMap_1_9_4 extends EntityMap int jumpIndex = packet.readerIndex(); switch ( packetId ) { + case 0x3A /* Attach Entity : PacketPlayOutAttachEntity */: case 0x48 /* Collect Item : PacketPlayOutCollect */: DefinedPacket.readVarInt( packet ); rewriteVarInt( packet, oldId, newId, packet.readerIndex() );