mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
Use cloud height rather than offset in options, allow placing liquid and sprite blocks even if entities are located there.
This commit is contained in:
parent
59990d2899
commit
dd23cc8a47
@ -32,9 +32,9 @@ namespace ClassicalSharp {
|
|||||||
if( env != null )
|
if( env != null )
|
||||||
env.CloudsSpeed = Single.Parse( v ); } ),
|
env.CloudsSpeed = Single.Parse( v ); } ),
|
||||||
|
|
||||||
Make( -140, 50, "Clouds offset", Anchor.Centre, OnWidgetClick,
|
Make( -140, 50, "Clouds height", Anchor.Centre, OnWidgetClick,
|
||||||
g => (g.Map.CloudHeight - g.Map.Height).ToString(),
|
g => g.Map.CloudHeight.ToString(),
|
||||||
(g, v) => g.Map.SetCloudsLevel( g.Map.Height + Int32.Parse( v ) ) ),
|
(g, v) => g.Map.SetCloudsLevel( Int32.Parse( v ) ) ),
|
||||||
|
|
||||||
Make( 140, -150, "Sunlight colour", Anchor.Centre, OnWidgetClick,
|
Make( 140, -150, "Sunlight colour", Anchor.Centre, OnWidgetClick,
|
||||||
g => g.Map.Sunlight.ToRGBHexString(),
|
g => g.Map.Sunlight.ToRGBHexString(),
|
||||||
|
@ -72,6 +72,7 @@ namespace ClassicalSharp {
|
|||||||
float height = game.BlockInfo.Height[newBlock];
|
float height = game.BlockInfo.Height[newBlock];
|
||||||
BoundingBox blockBB = new BoundingBox( pos.X, pos.Y, pos.Z,
|
BoundingBox blockBB = new BoundingBox( pos.X, pos.Y, pos.Z,
|
||||||
pos.X + 1, pos.Y + height, pos.Z + 1 );
|
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++ ) {
|
for( int id = 0; id < 255; id++ ) {
|
||||||
Player player = game.Players[id];
|
Player player = game.Players[id];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user