KB, not MB

This commit is contained in:
themode 2020-11-17 16:11:59 +01:00
parent 7ebbb8bc6c
commit 2405b7ae6f

View File

@ -40,7 +40,7 @@ public class MainDemo {
// OPTIONAL: optimize networking to prevent having unresponsive threads // OPTIONAL: optimize networking to prevent having unresponsive threads
{ {
NettyServer nettyServer = MinecraftServer.getNettyServer(); NettyServer nettyServer = MinecraftServer.getNettyServer();
// Set the maximum bandwidth out and in to 500MB/s, largely enough for a single client // Set the maximum bandwidth out and in to 500KB/s, largely enough for a single client
nettyServer.setWriteLimit(500_000); nettyServer.setWriteLimit(500_000);
nettyServer.setReadLimit(500_000); nettyServer.setReadLimit(500_000);
} }