public Block NextBlock(DrawOperation op) { Block block = (Block)op.Map.Blocks[op.Map.Index(op.Coords)]; if (block == Block) { return(Replacement.NextBlock(op)); } return(Block.None); }
public Block NextBlock(DrawOperation op) { if (op == null) { throw new ArgumentNullException("op"); } Block block = op.Map.GetBlock(op.Coords); if (block == Block) { return(Block.None); } return(Replacement.NextBlock(op)); }