diff options
author | EvilSeph <evilseph@gmail.com> | 2012-02-01 01:29:41 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-02-01 01:30:53 -0500 |
commit | 8b5289d431bd5da315aa8e39924ec81c8e428aa4 (patch) | |
tree | 6b6272d815404db21e2f012eb5d3133da524d06c /src/main/java/net/minecraft/server | |
parent | b269d6b63b91b99cd8aeb26cb773da649fb47948 (diff) | |
download | craftbukkit-8b5289d431bd5da315aa8e39924ec81c8e428aa4.tar craftbukkit-8b5289d431bd5da315aa8e39924ec81c8e428aa4.tar.gz craftbukkit-8b5289d431bd5da315aa8e39924ec81c8e428aa4.tar.lz craftbukkit-8b5289d431bd5da315aa8e39924ec81c8e428aa4.tar.xz craftbukkit-8b5289d431bd5da315aa8e39924ec81c8e428aa4.zip |
Fixed wrong game type being sent when a player is teleported across worlds. Fixes BUKKIT-510
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r-- | src/main/java/net/minecraft/server/ServerConfigurationManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManager.java b/src/main/java/net/minecraft/server/ServerConfigurationManager.java index 62d37089..271fb035 100644 --- a/src/main/java/net/minecraft/server/ServerConfigurationManager.java +++ b/src/main/java/net/minecraft/server/ServerConfigurationManager.java @@ -283,7 +283,7 @@ public class ServerConfigurationManager { // CraftBukkit start byte actualDimension = (byte) (worldserver.getWorld().getEnvironment().getId()); - entityplayer1.netServerHandler.sendPacket(new Packet9Respawn(actualDimension, (byte) worldserver.difficulty, worldserver.getSeed(), entityplayer1.world.getWorldData().getType(), worldserver.height, entityplayer.itemInWorldManager.getGameMode())); + entityplayer1.netServerHandler.sendPacket(new Packet9Respawn(actualDimension, (byte) worldserver.difficulty, worldserver.getSeed(), worldserver.getWorldData().getType(), worldserver.height, entityplayer.itemInWorldManager.getGameMode())); entityplayer1.spawnIn(worldserver); entityplayer1.dead = false; entityplayer1.netServerHandler.teleport(new Location(worldserver.getWorld(), entityplayer1.locX, entityplayer1.locY, entityplayer1.locZ, entityplayer1.yaw, entityplayer1.pitch)); |