diff options
author | T00thpick1 <t00thpick1dirko@gmail.com> | 2012-12-20 16:51:27 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2013-03-18 13:03:54 -0500 |
commit | 1bde25bb3328186c2d13b8e566b84ada543f1b1a (patch) | |
tree | 04023883d8e1e8c32614e6a6177cda517ab71ba5 /src/main/java/net/minecraft/server/PlayerList.java | |
parent | a7a5f273e3765a819f7d2ac71b4be4dbd28f9db4 (diff) | |
download | craftbukkit-1bde25bb3328186c2d13b8e566b84ada543f1b1a.tar craftbukkit-1bde25bb3328186c2d13b8e566b84ada543f1b1a.tar.gz craftbukkit-1bde25bb3328186c2d13b8e566b84ada543f1b1a.tar.lz craftbukkit-1bde25bb3328186c2d13b8e566b84ada543f1b1a.tar.xz craftbukkit-1bde25bb3328186c2d13b8e566b84ada543f1b1a.zip |
Implement per-player Weather API. Adds BUKKIT-812
Diffstat (limited to 'src/main/java/net/minecraft/server/PlayerList.java')
-rw-r--r-- | src/main/java/net/minecraft/server/PlayerList.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java index 585595d2..d57ff15b 100644 --- a/src/main/java/net/minecraft/server/PlayerList.java +++ b/src/main/java/net/minecraft/server/PlayerList.java @@ -15,6 +15,7 @@ import java.util.Map.Entry; // CraftBukkit start import org.bukkit.Location; import org.bukkit.TravelAgent; +import org.bukkit.WeatherType; import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftWorld; import org.bukkit.craftbukkit.chunkio.ChunkIOExecutor; @@ -975,7 +976,7 @@ public abstract class PlayerList { public void b(EntityPlayer entityplayer, WorldServer worldserver) { entityplayer.playerConnection.sendPacket(new Packet4UpdateTime(worldserver.getTime(), worldserver.getDayTime())); if (worldserver.O()) { - entityplayer.playerConnection.sendPacket(new Packet70Bed(1, 0)); + entityplayer.setPlayerWeather(WeatherType.DOWNFALL, false); // CraftBukkit - handle player specific weather } } |