Skip to content

Commit

Permalink
testing libdeflate
Browse files Browse the repository at this point in the history
  • Loading branch information
TitleHHHH authored and TitleHHHH committed Sep 27, 2024
1 parent 2a29de6 commit 9eeb172
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Sandbox/SandBoxMcProtoNet/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ internal class Program
{
public static async Task Main(string[] args)
{

Console.WriteLine("Start");
try
{
var list = new List<MinecraftClient>();
var listProtocols = new List<MultiProtocol>();
for (int i = 0; i < 300; i++)
for (int i = 0; i < 200; i++)
{
MinecraftClient client = new MinecraftClient()
{
Expand All @@ -28,7 +29,13 @@ public static async Task Main(string[] args)
Username = $"TitleBot_{i + 1:D3}",
Version = MinecraftVersion.Latest
};

client.StateChanged += (sender, eventArgs) =>
{
if (eventArgs.Error is not null)
{
Console.WriteLine(eventArgs.Error);
}
};
var protoTest = new MultiProtocol(client);
listProtocols.Add(protoTest);
list.Add(client);
Expand Down

0 comments on commit 9eeb172

Please sign in to comment.