From 70c73211a0d7e15e55c64f16b7cb2aca532e1d93 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 16 Mar 2013 13:07:51 +1100 Subject: [PATCH] Fix remapping of entities (fishing floats) --- proxy/src/main/java/net/md_5/bungee/EntityMap.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/proxy/src/main/java/net/md_5/bungee/EntityMap.java b/proxy/src/main/java/net/md_5/bungee/EntityMap.java index 50b06f9d..518a59fe 100644 --- a/proxy/src/main/java/net/md_5/bungee/EntityMap.java +++ b/proxy/src/main/java/net/md_5/bungee/EntityMap.java @@ -147,6 +147,17 @@ public class EntityMap } } } + if ( packetId == 0x17 ) + { + int type = packet[5] & 0xFF; + if ( ( type >= 60 && type <= 62 ) || type == 90 ) + { + if ( readInt( packet, 20 ) == oldId ) + { + setInt( packet, 20, newId ); + } + } + } } private static void setInt(byte[] buf, int pos, int i)