#3223: Only rewrite spectate packet if no IP forwarding
This commit is contained in:
parent
1ad81504ca
commit
f2aadd6014
@ -56,7 +56,7 @@ class EntityMap_1_16_2 extends EntityMap
|
|||||||
int packetId = DefinedPacket.readVarInt( packet );
|
int packetId = DefinedPacket.readVarInt( packet );
|
||||||
int packetIdLength = packet.readerIndex() - readerIndex;
|
int packetIdLength = packet.readerIndex() - readerIndex;
|
||||||
|
|
||||||
if ( packetId == spectateId )
|
if ( packetId == spectateId && !BungeeCord.getInstance().getConfig().isIpForward() )
|
||||||
{
|
{
|
||||||
UUID uuid = DefinedPacket.readUUID( packet );
|
UUID uuid = DefinedPacket.readUUID( packet );
|
||||||
ProxiedPlayer player;
|
ProxiedPlayer player;
|
||||||
|
Loading…
Reference in New Issue
Block a user