Fix spectator mode with ip-forwarding enabled

This commit is contained in:
Thinkofdeath 2015-02-25 22:31:05 +00:00
parent 988490ba87
commit e1951c5d66

View File

@ -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;