diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-24 22:03:31 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-24 22:05:22 +0100 |
commit | 0118a20d6a4d5637504b26998bfd96c7a65ddbe1 (patch) | |
tree | 3015971c8bd61d17e7da8f00d4b3b5db01f7e9b3 /src/main/java/net/minecraft/server/NetLoginHandler.java | |
parent | 75ac4e00b27d05627a3c4ffde7879a37dd612d02 (diff) | |
download | craftbukkit-0118a20d6a4d5637504b26998bfd96c7a65ddbe1.tar craftbukkit-0118a20d6a4d5637504b26998bfd96c7a65ddbe1.tar.gz craftbukkit-0118a20d6a4d5637504b26998bfd96c7a65ddbe1.tar.lz craftbukkit-0118a20d6a4d5637504b26998bfd96c7a65ddbe1.tar.xz craftbukkit-0118a20d6a4d5637504b26998bfd96c7a65ddbe1.zip |
Update to mcdev rename revision 01 for 1.8.1
Diffstat (limited to 'src/main/java/net/minecraft/server/NetLoginHandler.java')
-rw-r--r-- | src/main/java/net/minecraft/server/NetLoginHandler.java | 6 |
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 59ce9327..e1c7ba6a 100644 --- a/src/main/java/net/minecraft/server/NetLoginHandler.java +++ b/src/main/java/net/minecraft/server/NetLoginHandler.java @@ -91,14 +91,14 @@ public class NetLoginHandler extends NetHandler { WorldServer worldserver = (WorldServer) entityplayer.world; // CraftBukkit ChunkCoordinates chunkcoordinates = worldserver.getSpawn(); - entityplayer.itemInWorldManager.b(worldserver.p().n()); + entityplayer.itemInWorldManager.b(worldserver.p().getGameType()); NetServerHandler netserverhandler = new NetServerHandler(this.server, this.networkManager, entityplayer); int i = entityplayer.id; long j = worldserver.getSeed(); int k = entityplayer.itemInWorldManager.a(); byte b0 = (byte) worldserver.worldProvider.dimension; - byte b1 = (byte) worldserver.spawnMonsters; + 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. @@ -117,7 +117,7 @@ public class NetLoginHandler extends NetHandler { netserverhandler.a(entityplayer.locX, entityplayer.locY, entityplayer.locZ, entityplayer.yaw, entityplayer.pitch); this.server.networkListenThread.a(netserverhandler); netserverhandler.sendPacket(new Packet4UpdateTime(entityplayer.getPlayerTime())); // CraftBukkit - add support for player specific time - Iterator iterator = entityplayer.ak().iterator(); + Iterator iterator = entityplayer.getEffects().iterator(); while (iterator.hasNext()) { MobEffect mobeffect = (MobEffect) iterator.next(); |