diff --git a/MCGalaxy/Commands/Information/CmdMapInfo.cs b/MCGalaxy/Commands/Information/CmdMapInfo.cs index 7715dd723..259449e0c 100644 --- a/MCGalaxy/Commands/Information/CmdMapInfo.cs +++ b/MCGalaxy/Commands/Information/CmdMapInfo.cs @@ -191,6 +191,12 @@ namespace MCGalaxy.Commands.Info { Player.Message(p, "Weather fade rate: &b{0}%%S, Exponential fog: {1}", (cfg.WeatherFade / 128).ToString("F2"), cfg.ExpFog ? "&aON" : "&cOFF"); + Player.Message(p, "Skybox rotations: Horizontal &b{0}%S, vertical &b{1}", + SkyboxSpeed(cfg.SkyboxHorSpeed), SkyboxSpeed(cfg.SkyboxVerSpeed)); + } + + static string SkyboxSpeed(int angle) { + return angle == 0 ? "none" : (angle / 1024.0).ToString("F3") + "/s"; } class MapInfoData { diff --git a/MCGalaxy/Player/Player.CPE.cs b/MCGalaxy/Player/Player.CPE.cs index 92bf5e7e2..89219b4df 100644 --- a/MCGalaxy/Player/Player.CPE.cs +++ b/MCGalaxy/Player/Player.CPE.cs @@ -111,8 +111,7 @@ namespace MCGalaxy { Send(Packet.EnvMapUrl(url, hasCP437)); Send(Packet.EnvMapProperty(EnvProp.SidesBlock, side)); - Send(Packet.EnvMapProperty(EnvProp.EdgeBlock, edge)); - + Send(Packet.EnvMapProperty(EnvProp.EdgeBlock, edge)); Send(Packet.EnvMapProperty(EnvProp.EdgeLevel, level.Config.EdgeLevel)); Send(Packet.EnvMapProperty(EnvProp.SidesOffset, level.Config.SidesOffset)); Send(Packet.EnvMapProperty(EnvProp.CloudsLevel, level.Config.CloudsHeight)); @@ -121,6 +120,8 @@ namespace MCGalaxy { Send(Packet.EnvMapProperty(EnvProp.CloudsSpeed, level.Config.CloudsSpeed)); Send(Packet.EnvMapProperty(EnvProp.WeatherSpeed, level.Config.WeatherSpeed)); Send(Packet.EnvMapProperty(EnvProp.ExpFog, level.Config.ExpFog ? 1 : 0)); + Send(Packet.EnvMapProperty(EnvProp.SkyboxHorSpeed, level.Config.SkyboxHorSpeed)); + Send(Packet.EnvMapProperty(EnvProp.SkyboxVerSpeed, level.Config.SkyboxVerSpeed)); } else if (Supports(CpeExt.EnvMapAppearance, 2)) { string url = GetTextureUrl(); // reset all other textures back to client default.