#3223: Only rewrite spectate packet if no IP forwarding

This commit is contained in:
md_5 2021-12-13 08:25:49 +11:00
parent 1ad81504ca
commit f2aadd6014
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -56,7 +56,7 @@ class EntityMap_1_16_2 extends EntityMap
int packetId = DefinedPacket.readVarInt( packet );
int packetIdLength = packet.readerIndex() - readerIndex;
if ( packetId == spectateId )
if ( packetId == spectateId && !BungeeCord.getInstance().getConfig().isIpForward() )
{
UUID uuid = DefinedPacket.readUUID( packet );
ProxiedPlayer player;