diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-03-01 18:41:20 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-03-01 18:41:20 +0000 |
commit | efc9ced1283dc433a0c325b207fc816ebda0d2ef (patch) | |
tree | 050f99bef20ed8cae8f80850da4e80f61ae27027 /src/main/java/net/minecraft/server/NetLoginHandler.java | |
parent | f1f9802ded9b7bf273ccdbfc077c636a57d3942d (diff) | |
download | craftbukkit-efc9ced1283dc433a0c325b207fc816ebda0d2ef.tar craftbukkit-efc9ced1283dc433a0c325b207fc816ebda0d2ef.tar.gz craftbukkit-efc9ced1283dc433a0c325b207fc816ebda0d2ef.tar.lz craftbukkit-efc9ced1283dc433a0c325b207fc816ebda0d2ef.tar.xz craftbukkit-efc9ced1283dc433a0c325b207fc816ebda0d2ef.zip |
Fixed sending maxPlayers at initial login
Diffstat (limited to 'src/main/java/net/minecraft/server/NetLoginHandler.java')
-rw-r--r-- | src/main/java/net/minecraft/server/NetLoginHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/NetLoginHandler.java b/src/main/java/net/minecraft/server/NetLoginHandler.java index a19aedc5..9f5e6e00 100644 --- a/src/main/java/net/minecraft/server/NetLoginHandler.java +++ b/src/main/java/net/minecraft/server/NetLoginHandler.java @@ -111,7 +111,7 @@ public class NetLoginHandler extends NetHandler { if (maxPlayers > 60) { maxPlayers = 60; } - netserverhandler.sendPacket(new Packet1Login("", entityplayer.id, worldserver.getWorldData().getType(), entityplayer.itemInWorldManager.getGameMode(), worldserver.worldProvider.dimension, (byte) worldserver.difficulty, (byte) worldserver.getHeight(), (byte) this.server.serverConfigurationManager.getMaxPlayers())); + netserverhandler.sendPacket(new Packet1Login("", entityplayer.id, worldserver.getWorldData().getType(), entityplayer.itemInWorldManager.getGameMode(), worldserver.worldProvider.dimension, (byte) worldserver.difficulty, (byte) worldserver.getHeight(), (byte) maxPlayers)); entityplayer.getBukkitEntity().sendSupportedChannels(); // CraftBukkit end |