summaryrefslogtreecommitdiffstats
path: root/src/main/java/net
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-09-25 04:14:27 +0100
committerDinnerbone <dinnerbone@dinnerbone.com>2011-09-25 04:14:27 +0100
commita1f8d3fd479bdf0e1860637e464a57efbc82c7cd (patch)
treee7af89ad0440d87ea77e4a439bfcbdb94776d711 /src/main/java/net
parentaece687d01374e0e8d52bab925cfc8eab5dbfb1d (diff)
downloadcraftbukkit-a1f8d3fd479bdf0e1860637e464a57efbc82c7cd.tar
craftbukkit-a1f8d3fd479bdf0e1860637e464a57efbc82c7cd.tar.gz
craftbukkit-a1f8d3fd479bdf0e1860637e464a57efbc82c7cd.tar.lz
craftbukkit-a1f8d3fd479bdf0e1860637e464a57efbc82c7cd.tar.xz
craftbukkit-a1f8d3fd479bdf0e1860637e464a57efbc82c7cd.zip
Changed max player count from 126 to 60 for ingame player list rendering fixes
Diffstat (limited to 'src/main/java/net')
-rw-r--r--src/main/java/net/minecraft/server/NetLoginHandler.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/NetLoginHandler.java b/src/main/java/net/minecraft/server/NetLoginHandler.java
index e1c7ba6a..a9da6898 100644
--- a/src/main/java/net/minecraft/server/NetLoginHandler.java
+++ b/src/main/java/net/minecraft/server/NetLoginHandler.java
@@ -101,10 +101,10 @@ public class NetLoginHandler extends NetHandler {
byte b1 = (byte) worldserver.difficulty;
worldserver.getClass();
- // CraftBukkit start -- Don't send a higher than 126 MaxPlayer size, otherwise the PlayerInfo window won't render correctly.
+ // CraftBukkit start -- Don't send a higher than 60 MaxPlayer size, otherwise the PlayerInfo window won't render correctly.
int maxPlayers = this.server.serverConfigurationManager.h();
- if (maxPlayers > 126) {
- maxPlayers = 126;
+ if (maxPlayers > 60) {
+ maxPlayers = 60;
}
Packet1Login packet1login1 = new Packet1Login("", i, j, k, b0, b1, (byte) -128, (byte) maxPlayers);
// CraftBukkit end