fCraft.LifeHandler.SetEmpty C# (CSharp) Method

SetEmpty() private static method

private static SetEmpty ( Player p, Life2DZone life, string val ) : void
p Player
life Life2DZone
val string
return void
        private static void SetEmpty( Player p, Life2DZone life, string val )
        {
            Block b = Map.GetBlockByName( val );
            if ( b == Block.Undefined ) {
                p.Message( "&WUnrecognized block name " + val );
                return;
            }
            life.Empty = b;
            p.Message( "&yEmpty block set to " + val );
        }