From e1951c5d66f7a75bb30113f08d5fd00c7d2159d5 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Wed, 25 Feb 2015 22:31:05 +0000 Subject: [PATCH] Fix spectator mode with ip-forwarding enabled --- .../src/main/java/net/md_5/bungee/entitymap/EntityMap_1_8.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_8.java b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_8.java index d5df24cd..9d020d32 100644 --- a/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_8.java +++ b/proxy/src/main/java/net/md_5/bungee/entitymap/EntityMap_1_8.java @@ -161,7 +161,7 @@ class EntityMap_1_8 extends EntityMap int packetId = DefinedPacket.readVarInt( packet ); int packetIdLength = packet.readerIndex() - readerIndex; - if ( packetId == 0x18 /* Spectate */ ) + if ( packetId == 0x18 /* Spectate */ && !BungeeCord.getInstance().getConfig().isIpForward()) { UUID uuid = DefinedPacket.readUUID( packet ); ProxiedPlayer player;