Fix spectator mode with ip-forwarding enabled
This commit is contained in:
parent
988490ba87
commit
e1951c5d66
@ -161,7 +161,7 @@ class EntityMap_1_8 extends EntityMap
|
|||||||
int packetId = DefinedPacket.readVarInt( packet );
|
int packetId = DefinedPacket.readVarInt( packet );
|
||||||
int packetIdLength = packet.readerIndex() - readerIndex;
|
int packetIdLength = packet.readerIndex() - readerIndex;
|
||||||
|
|
||||||
if ( packetId == 0x18 /* Spectate */ )
|
if ( packetId == 0x18 /* Spectate */ && !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