mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-02 15:14:22 +01:00
#3158: Remove redundant protocol version check in the TabCompleteResponse packet
No need for the second if in the read and write method use a else instead
This commit is contained in:
parent
96482cc0cf
commit
2e0e88db0d
@ -57,9 +57,7 @@ public class TabCompleteResponse extends DefinedPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
suggestions = new Suggestions( range, matches );
|
suggestions = new Suggestions( range, matches );
|
||||||
}
|
} else
|
||||||
|
|
||||||
if ( protocolVersion < ProtocolConstants.MINECRAFT_1_13 )
|
|
||||||
{
|
{
|
||||||
commands = readStringArray( buf );
|
commands = readStringArray( buf );
|
||||||
}
|
}
|
||||||
@ -84,9 +82,7 @@ public class TabCompleteResponse extends DefinedPacket
|
|||||||
writeString( suggestion.getTooltip().getString(), buf );
|
writeString( suggestion.getTooltip().getString(), buf );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else
|
||||||
|
|
||||||
if ( protocolVersion < ProtocolConstants.MINECRAFT_1_13 )
|
|
||||||
{
|
{
|
||||||
writeStringArray( commands, buf );
|
writeStringArray( commands, buf );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user