From 507a98f28fa9e96c8c9d7f56eb1b112fcdfdbe05 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 29 Jun 2016 09:14:03 +1000 Subject: [PATCH] #1859: Rewrite second leash int --- .../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 cb7ea1c0..a89ea2e9 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 @@ -61,6 +61,8 @@ class EntityMap_1_10 extends EntityMap switch ( packetId ) { case 0x3A /* Attach Entity : PacketPlayOutAttachEntity */: + rewriteInt( packet, oldId, newId, readerIndex + packetIdLength + 4 ); + break; 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 a3b13bf5..19d96776 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 @@ -61,6 +61,8 @@ class EntityMap_1_9 extends EntityMap switch ( packetId ) { case 0x3A /* Attach Entity : PacketPlayOutAttachEntity */: + rewriteInt( packet, oldId, newId, readerIndex + packetIdLength + 4 ); + break; 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 cddc06aa..412ab4ed 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 @@ -61,6 +61,8 @@ class EntityMap_1_9_4 extends EntityMap switch ( packetId ) { case 0x3A /* Attach Entity : PacketPlayOutAttachEntity */: + rewriteInt( packet, oldId, newId, readerIndex + packetIdLength + 4 ); + break; case 0x48 /* Collect Item : PacketPlayOutCollect */: DefinedPacket.readVarInt( packet ); rewriteVarInt( packet, oldId, newId, packet.readerIndex() );