diff --git a/ClassicalSharp/2D/Screens/Menu/EnvSettingsScreen.cs b/ClassicalSharp/2D/Screens/Menu/EnvSettingsScreen.cs index ba1ce56d9..bf41c953a 100644 --- a/ClassicalSharp/2D/Screens/Menu/EnvSettingsScreen.cs +++ b/ClassicalSharp/2D/Screens/Menu/EnvSettingsScreen.cs @@ -32,9 +32,9 @@ namespace ClassicalSharp { if( env != null ) env.CloudsSpeed = Single.Parse( v ); } ), - Make( -140, 50, "Clouds offset", Anchor.Centre, OnWidgetClick, - g => (g.Map.CloudHeight - g.Map.Height).ToString(), - (g, v) => g.Map.SetCloudsLevel( g.Map.Height + Int32.Parse( v ) ) ), + Make( -140, 50, "Clouds height", Anchor.Centre, OnWidgetClick, + g => g.Map.CloudHeight.ToString(), + (g, v) => g.Map.SetCloudsLevel( Int32.Parse( v ) ) ), Make( 140, -150, "Sunlight colour", Anchor.Centre, OnWidgetClick, g => g.Map.Sunlight.ToRGBHexString(), diff --git a/ClassicalSharp/Game/InputHandler.cs b/ClassicalSharp/Game/InputHandler.cs index 03ba2126f..5d0d0a72c 100644 --- a/ClassicalSharp/Game/InputHandler.cs +++ b/ClassicalSharp/Game/InputHandler.cs @@ -72,6 +72,7 @@ namespace ClassicalSharp { float height = game.BlockInfo.Height[newBlock]; BoundingBox blockBB = new BoundingBox( pos.X, pos.Y, pos.Z, pos.X + 1, pos.Y + height, pos.Z + 1 ); + if( game.BlockInfo.CollideType[newBlock] != BlockCollideType.Solid ) return true; for( int id = 0; id < 255; id++ ) { Player player = game.Players[id];